diff --git a/app/views/docs/databases.phtml b/app/views/docs/databases.phtml index 26fa7f733..2d014d22c 100644 --- a/app/views/docs/databases.phtml +++ b/app/views/docs/databases.phtml @@ -1,8 +1,7 @@

The Databases Service allows you to store your application and users' data and fetch it using different supported queries. - Using your Appwrite Databases, you can create multiple databases, organize your data into collections and documents using the Appwrite REST API. You can also use the Appwrite Realtime API to subscribe to live changes in your collections and documents. - In addition, the Databases Service provides built-in validation to check the integrity of your incoming data, custom indexing for query performance, - as well as a flexible permissions mechanism to allow you to easily segment data between different users, teams, and roles. + Using the Databases Service, you can create multiple databases and organize your data into collections and documents using Appwrite's REST API. You can also use the Appwrite Realtime API to subscribe to live changes in your collections and documents. + In addition, the Databases Service provides built-in validation to check the integrity of your incoming data, custom indexing for query performance, and a flexible permissions mechanism to easily segment data between different users, teams, and roles.

Create Your Databases

@@ -54,42 +53,42 @@ - string + string String attribute. - integer + integer Integer attribute. - float + float Float attribute. - boolean + boolean Boolean attribute. - enum + enum Enum attribute. - ip + ip IP address attribute for IPv4 and IPv6. - email + email Email address attribute. - url + url URL attribute.

- If an attribute must be present in all documents, set it as required. If not, a default value might be handy. Additionally, decide if the attribute should be a primitive or array of values. + If an attribute must be populated in all documents, set it as required. If not, a default value might be handy, but is not required. Additionally, decide if the attribute should be a primitive or an array of values.

When adding or removing attributes, your requests are processed in the background, indicated by the attribute's status. @@ -231,10 +230,10 @@ func main() async throws {

Indexes Required

-

You can only query indexed attributes. You can easily add new indexes from both the Appwrite console or any of the server SDKs. Appwrite uses this limitation to enforce optimized queries for maximum performance and scalability of your collection. You can learn more about it in the Appwrite Indexes section.

+

You can only query indexed attributes. You can easily add new indexes from both your project's dashboard or any of the server SDKs. Appwrite uses this limitation to enforce optimized queries for maximum performance and scalability of your collection. You can learn more about it in the Appwrite Indexes section.

- To find specific documents in a collection, pass an array of query strings as a parameter to the listDocuments endpoint. The SDKs provide a Query class to make query building simpler: + To find specific documents in a collection, pass an array of query strings as a parameter to the List Documents endpoint. The SDKs provide a Query class to make query building simpler:

-

In the example above, the movies returned will be first sorted by title in ascending order, then sorted by year in descending order.

+

In the example above, the movies returned will be first sorted by title in ascending order, then sorted by year in descending order.

Appwrite has full support for pagination to better optimize and scale up your applications built on Appwrite. Detailed documentation on pagination and how to implement it can be found on the pagination guide.