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
- Appwrite project paused
I have github student account. The auth has been paused however the database is working fine. I cant see any option to resume from my console panel. It is just ...
- Missing Invoice
Hi! I need help with billing on my account (marelu@gmail.com). I have never received a single invoice by email. My organization has been on the Pro plan since...
- Appwrite Functions cold start
Hello. I'm seeing really long cold starts on Appwrite Cloud Functions and wanted to know if this is expected. My function just authenticates the user, fetches ...