250 B
250 B
let sdk = new Appwrite();
sdk setProject('') ;
let promise = sdk.database.updateDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', '{}');
promise.then(function (response) { console.log(response); }, function (error) { console.log(error); });