🚀 Feature: Support the ability to perform operations on multiple documents in a single request #4820
Open
2 tasks done
Labels
enhancement
New feature or request
product / databases
Fixes and upgrades for the Appwrite Database.
🔖 Feature description
support the ability to perform operations on multiple documents in a single request
🎤 Pitch
In my example, I have a contact list where I can select multiple contacts to perform actions on.
I want to delete these contacts, so I would use the deleteDocument method for each contact I want to delete. :
await databases.deleteDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]');
However, this would require making multiple separate requests.
To limit the number of requests and improve performance, it would be useful to have a method that allows me to delete multiple documents with a single request. This method could be called deleteDocuments :
await databases.deleteDocuments('[DATABASE_ID]', '[COLLECTION_ID]', ['[DOCUMENT_ID]', ...]);
The same logic could be applied for creating and modifying documents, using methods like createDocuments and updateDocuments.
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: