import { Databases } from "https://deno.land/x/appwrite@12.1.0/src/services/databases.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 a date time attribute according to the ISO 8601 standard.
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 an enumeration attribute. The elements
param acts as a white-list
of accepted values for this attribute.
Create float attribute
Create a float attribute. Optionally, minimum and maximum values can be provided.
Create index
Creates an index on the attributes listed. Your index should include all
the attributes you will query in a single request.
Attributes can be key
, fulltext
, and unique
.
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
Deletes an 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
Delete an index.
Get database
Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata.
Get attribute
Get attribute by ID.
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
Get index by ID.
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 attributes in the collection.
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
List indexes in the collection.
Update database
Update a database by its unique ID.
Update boolean attribute
Update a boolean attribute. Changing the default
value will not update
already existing documents.
Update collection
Update a collection by its unique ID.
Update dateTime attribute
Update a date time attribute. Changing the default
value will not update
already existing documents.
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.