Initializes a new instance of that class.
The underlying database.
The Appwrite model of that collection.
ReadonlydatabaseThe underlying database.
ReadonlymodelThe Appwrite model of that collection.
Returns the list of attributes.
Gets the ID of that collection.
Returns the list of indexes.
Get the name of this collection.
Deletes many documents at once.
Optionaloptions: null | DeleteAppwriteDocumentsOptions<TDocument>Custom options.
Deletes a single document.
The document (or its ID) to delete.
Returns an attribute by name.
The name of the attribute.
The attribute.
Returns an index by name.
The name of the index.
The index.
Initializes that instance.
Inserts one or more items.
Optional...restItems: AppwriteDocumentData<TDocument>[]The rest items.
Inserts one or more items.
The rest items.
Inserts a single document.
The data for the new document.
The promise with the new document.
Starts a query.
Optionaloptions: null | QueryAppwriteProjectDatabaseCollectionOptionsThe custom options.
The async cursor.
Starts a query and only returns with the first matching document.
The options.
The promise with the document or null if not found.
Inserts one or more items.
The data to update.
Optionaloptions: null | UpdateAppwriteDocumentsOptions<TDocument>Custom options.
Updates a single document.
The document (or its ID) to update.
Optionaldata: null | Partial<AppwriteDocumentData<TDocument>>The data to update.
The promise with the instance of the new document.
Returns the same instance, but more typed.
This instance as stronger typed version.
A single database collection instance.