0
3
KKKhalid Khan
The following code creates a promise that will return the list of documents from the SDK database for the user input of the COLLECTION_ID.
Shortcut: appwrite.web.listdoc
let promise = sdk.database.listDocuments('&[USER_INPUT:[COLLECTION_ID]]');