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
- Opening Project I get "500 Internal Erro...
Opening Project I get "500 Internal Error" added what i see on the page and in dev console
- Envvar editor var count mismatch
It shows i got 30 vars, but i can only count 22 + 3 secret. It's very confusing. Can't figure if it is hiding some or just counting wrong.
- Excessive usage of cloud functions is sl...
I have made almost all my requests through cloud functions and jwt , due to security fears of a user editing a field he is not supposed to . This unfortunately...