import { Database } from "https://deno.land/x/appwrite@1.0.0/mod.ts";
Methods
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.
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.
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.
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.
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.