Get Document for Appwrite (Web)



    Khalid Khan

    Appwrite companion cookbook

    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');
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.