update-many
Update multiple MongoDB documents matching a filter in a collection with specified modifications, optionally inserting new documents when no matches exist.
Instructions
Updates all documents that match the specified filter for a collection
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database | Yes | Database name | |
| collection | Yes | Collection name | |
| filter | No | The selection criteria for the update, matching the syntax of the filter argument of db.collection.updateOne() | |
| update | Yes | An update document describing the modifications to apply using update operator expressions | |
| upsert | No | Controls whether to insert a new document if no documents match the filter |