1
0
Fork 0
mirror of synced 2024-08-18 03:31:49 +12:00
appwrite/app/sdks/javascript/docs/examples/database/get-document.md
2020-01-31 02:14:47 +02:00

13 lines
No EOL
242 B
Markdown

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