2020-01-28 10:50:41 +13:00
|
|
|
let sdk = new Appwrite();
|
|
|
|
|
|
|
|
sdk
|
2020-02-16 06:53:12 +13:00
|
|
|
.setProject('5df5acd0d48c2')
|
2020-01-28 10:50:41 +13:00
|
|
|
;
|
|
|
|
|
2020-02-14 19:28:54 +13:00
|
|
|
let promise = sdk.database.updateDocument('[COLLECTION_ID]', '[DOCUMENT_ID]', {}, [], []);
|
2020-01-28 10:50:41 +13:00
|
|
|
|
|
|
|
promise.then(function (response) {
|
|
|
|
console.log(response);
|
|
|
|
}, function (error) {
|
|
|
|
console.log(error);
|
|
|
|
});
|