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`.can you pass the whole function code?
here you go
Everything looks good enough. I assume the docId parameter is nor initialized or recived correctly in the function
Recommended threads
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!
- One-time Cloud migration blocked by data...
Hi, I’m blocked on a one-time migration from Appwrite Cloud to my self-hosted Appwrite instance. We already fixed the region issue, and the migration now corre...
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...