update_document
Modify an existing document in a MongoDB collection by providing the collection name, document ID, and a JSON string of fields to update.
Instructions
Update an existing document in a collection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | Yes | The MongoDB object ID of the document to update | |
| update_json | Yes | JSON string with the fields to update | |
| collection_name | Yes | Name of the collection |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||