ActionMongoDB AtlasUpdated September 2026
How do I update a MongoDB document?
Short answer: You can update one mongodb document in MongoDB Atlas by hand from its own interface, but it won’t repeat itself. On TinyCommand, add the MongoDB Atlas Update One MongoDB Document action to a workflow, map its 5 inputs from any upstream app, and it runs automatically every time the trigger fires. No code, and a free tier to start.
Inputs
The fields this action accepts.
Every field can be mapped from an upstream trigger, AI step, table row, or hard-coded literal.
| Field | Type | Required | Description |
|---|---|---|---|
Database database | string | Required | – |
Collection collection | string | Required | – |
Filter filter | object | Required | Find the document to update. Most common: `{"_id": "abc"}` or `{"email": "x@y.com"}`. |
Update update | object | Required | Update operators. e.g. `{"$set":{"name":"new"}}`, `{"$inc":{"count":1}}`. |
Upsert upsert | boolean | Optional | If true, insert if no match. |
Sample request
{"database": "{{trigger.database}}","collection": "{{trigger.collection}}","filter": "{{trigger.filter}}","update": "{{trigger.update}}","upsert": "{{trigger.upsert}}"}
Returns
{"upsertedId": null,"matchedCount": 1,"modifiedCount": 1}
Use these fields in downstream nodes for routing, logging, or error handling.
Triggered by
Apps that pair well as the trigger for Update One MongoDB Document.
Any of these apps can fire this action as part of a workflow.
FAQ
Questions about Update One MongoDB Document.
What does the Update One MongoDB Document action do in MongoDB Atlas?
Updates a single document by filter using update operators ($set, $inc, $push). Atomic at document level. For sync workflows that incrementally update Atlas-stored state.
What inputs does Update One MongoDB Document require?
Required: Database, Collection, Filter, Update. Every input accepts a static value or a variable from any upstream node in your workflow.
Can I use dynamic inputs from earlier workflow nodes?
Yes. Any field on this action can pull values from upstream nodes, whether that's a form response, a trigger payload, an AI output, or a lookup result.
What happens if MongoDB Atlas returns an error?
The run history shows the failed step with its input and the error message MongoDB Atlas returned, so you can fix the input and run the workflow again. Automatic retries are built into HTTP steps only, where you can also set your own retry count and delay.
Does Update One MongoDB Document support batch operations?
Run Update One MongoDB Document inside a loop to process each item in an array. TinyCommand does not throttle calls for you, so for large arrays add a Delay step if you need to stay within MongoDB Atlas's rate limits.
More actions
Other MongoDB Atlas actions.
Action
Find MongoDB Documents
Returns documents matching a MongoDB filter from a specific collection. Standard MongoDB query syntax — supports comparison, set, boolean operators. For sync workflows or for "fetch this user's record" lookups.
ActionInsert One MongoDB Document
Inserts a single document into a collection. For bulk inserts, the bulk endpoint via HTTP action is much faster per-document.