0
6
KKKhalid Khan
The code creates a promise that will be resolved when the updateDocument() method on the appwrite SDK Database object is successfully called with the collection_id and document_id arguments.
Shortcut: appwrite.web.updatedoc
let promise = sdk.database.updateDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {});