import { Database } from "https://deno.land/x/appwrite@0.0.2/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 document by its unique ID. This endpoint deletes only the parent documents, his attributes and relations to other documents. Child documents will not be deleted.
Get Collection
Get collection by its unique ID. This endpoint response returns a JSON object with the collection metadata.
Get Collection Logs
Get Document
Get 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 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 documents. Learn more about different API modes.
Update Collection
Update collection by its unique ID.
Update Document