2020-01-28 10:50:41 +13:00
|
|
|
const sdk = require('node-appwrite');
|
|
|
|
|
|
|
|
// Init SDK
|
|
|
|
let client = new sdk.Client();
|
|
|
|
|
|
|
|
let database = new sdk.Database(client);
|
|
|
|
|
|
|
|
client
|
2020-02-16 06:53:12 +13:00
|
|
|
.setProject('5df5acd0d48c2')
|
|
|
|
.setKey('919c2d18fb5d4...a2ae413da83346ad2')
|
2020-01-28 10:50:41 +13:00
|
|
|
;
|
|
|
|
|
2020-02-14 19:28:54 +13:00
|
|
|
let promise = 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);
|
|
|
|
});
|