import { Databases } from "https://deno.land/x/appwrite@9.1.0/mod.ts";
Constructors
Methods
Create database
Create a new Database.
Create boolean attribute
Create a boolean attribute.
Create collection
Create a new Collection. Before using this route, you should create a new database resource using either a server integration API or directly from your database console.
Create datetime attribute
Create document
Create a new Document. Before using this route, you should create a new collection resource using either a server integration API or directly from your database console.
Create email attribute
Create an email attribute.
Create enum attribute
Create float attribute
Create a float attribute. Optionally, minimum and maximum values can be provided.
Create index
Create integer attribute
Create an integer attribute. Optionally, minimum and maximum values can be provided.
Create IP address attribute
Create IP address attribute.
Create relationship attribute
Create relationship attribute. Learn more about relationship attributes.
Create string attribute
Create a string attribute.
Create URL attribute
Create a URL attribute.
Delete database
Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database.
Delete attribute
Delete collection
Delete a collection by its unique ID. Only users with write permissions have access to delete this resource.
Delete document
Delete a document by its unique ID.
Delete index
Get database
Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata.
Get attribute
Get collection
Get a collection by its unique ID. This endpoint response returns a JSON object with the collection metadata.
Get document
Get a document by its unique ID. This endpoint response returns a JSON object with the document data.
Get index
List databases
Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.
List attributes
List collections
Get a list of all collections that belong to the provided databaseId. You can use the search parameter to filter your results.
List documents
Get a list of all the user's documents in a given collection. You can use the query params to filter your results.
List indexes
Update database
Update a database by its unique ID.
Update boolean attribute
Update collection
Update a collection by its unique ID.
Update dateTime attribute
Update document
Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.
Update email attribute
Update an email attribute. Changing the default
value will not update
already existing documents.
Update enum attribute
Update an enum attribute. Changing the default
value will not update
already existing documents.
Update float attribute
Update a float attribute. Changing the default
value will not update
already existing documents.
Update integer attribute
Update an integer attribute. Changing the default
value will not update
already existing documents.
Update IP address attribute
Update an ip attribute. Changing the default
value will not update
already existing documents.
Update relationship attribute
Update relationship attribute. Learn more about relationship attributes.
Update string attribute
Update a string attribute. Changing the default
value will not update
already existing documents.
Update URL attribute
Update an url attribute. Changing the default
value will not update
already existing documents.