import { Database } from "https://deno.land/x/appwrite@2.0.2/mod.ts";
Methods
Create Boolean Attribute
Create a boolean attribute.
Create Collection
Create a new Collection.
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 String Attribute
Create a string attribute.
Create URL Attribute
Create a URL attribute.
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. This endpoint deletes only the parent documents, its attributes and relations to other documents. Child documents will not be deleted.
Delete Index
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 Attributes
List Collections
Get a list of all the user collections. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's collections. Learn more about different API modes.
List Documents
Get a list of all the user documents. You can use the query params to filter your results. On admin mode, this endpoint will return a list of all of the project's documents. Learn more about different API modes.
List Indexes
Update Collection
Update a collection by its unique ID.
Update Document
Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.