Skip to content
Back

Error: Missing required parameter: "documentId"

  • 0
  • Cloud
zombikaa
23 Dec, 2024, 10:27

Hi, i have this code in node js, and i get the error,

TypeScript
const response = await database.updateDocument(
            databaseId,
            collectionId,
            docID,
            payload
        );
TL;DR
Error message: Missing required parameter "documentId" in Node.js code. Developers provided the function code containing the error: ```javascript const response = await database.updateDocument( databaseId, collectionId, docID, payload ); ``` The issue likely arises from the misspelled `docID`.
Axistro
23 Dec, 2024, 10:31

can you pass the whole function code?

zombikaa
23 Dec, 2024, 10:52

here you go

Axistro
23 Dec, 2024, 10:55

Everything looks good enough. I assume the docId parameter is nor initialized or recived correctly in the function

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more