Skip to content

📚 Documentation: updateDocument example doesn't include data or permissions #636

@Akash-152000

Description

@Akash-152000

💭 Description

In updateDocument Method:

const promise = databases.updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]');

above code should be updated to this:

const promise = databases.updateDocument('[DATABASE_ID]', '[COLLECTION_ID]', '[DOCUMENT_ID]',{title,description});

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?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions