mongo_update_one
Update a single document in MongoDB by providing a filter and an update document. Optionally enable upsert to insert if no match found.
Instructions
Update a single document matching filter in MongoDB. Blocked when readOnly mode is enabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | Yes | JSON string filter. | |
| update | Yes | JSON string update document (e.g. '{"$set":{"name":"new"}}'). | |
| upsert | No | ||
| database | No | ||
| collection | Yes | ||
| connectionId | No | Id of the mongodb connection to use. Optional when only one mongodb connection is configured. |