0
6
KKKhalid Khan
The code creates a promise from appwrite SDK.database.getDocument which takes two arguments. The first is the collection ID, and the second is the document ID. Once the promise is created, the code can use it to retrieve the document.
Shortcut: appwrite.web.getdoc
let promise = sdk.database.getDocument('&[USER_INPUT:1;[COLLECTION_ID]', '[DOCUMENT_ID');