update
Update documents in a MongoDB collection by applying operations like $set, $inc. Use filters to target specific documents, with options to update multiple, upsert, or control ObjectId handling.
Instructions
Update documents in a MongoDB collection
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| multi | No | Update multiple documents that match the filter | |
| filter | Yes | Filter to select documents to update | |
| update | Yes | Update operations to apply ($set, $unset, $inc, etc.) | |
| upsert | No | Create a new document if no documents match the filter | |
| collection | Yes | Name of the collection to update | |
| objectIdMode | No | Control how 24-character hex strings are handled | auto |