-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
📚 Documentation: updateDocument example doesn't include data or permissions #636
Comments
If this is identified as valid by the repo maintainers, then i would like to work on this issue, can you please assign it to me. |
can you assign it to me? |
Can you please assign this issue to me? I would like to work on it. |
Afaik, the method used for this is const promise = databases.updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]',{'existingKey':'newValue'}); |
THANKS for your suggestion . Just raised a pr please check @ItzNotABug I kept in my mind your suggestion , i have closed my previous pr , please only consider the latest one pr. |
We've decided to list all required and optional params in code examples which will solve this issue. |
💭 Description
In updateDocument Method:
above code should be updated to this:
which increases readability for the users, by reading this they would know they have to pass the object with attributes they want to update.
Click on the link to visit updateDocument() in documentation: Link
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: