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
- GB Hours IS NOT resetting
Hi, I was checking my usage and noticed that all of my usage quotas were reset on August 20, 2026, when my billing cycle renewed. Everything else appears to ha...
- Confused about Appwrite Pro pricing
Hi. I've been subscribed to the $25 Appwrite Pro plan, but I've been getting charged $40. I have two projects on my account. I was wondering where exactly the e...
- Custom domain for Google Auth
Hello! I connected my custom domain to my Appwrite project, but I can't get the Google login/consent screen to show my domain instead of the Appwrite domain. I...