Forum Discussion

Jake_pm's avatar
Jake_pm
New Contributor II
3 years ago
Solved

Mongo DB Update Snap - Expression for Query

The following query works in MongoDB Atlas to update a record:
db.mytable.update
(
{
_id : ObjectId(‘1234’)
},
{
$set :
{
“org_name” : “new org name”
}
}
)

How do we configure this for use with the Mongo DB -Update snap?
any one have an example?

  • Figured it out… here’s what the MongoDB Update snap should look like.

    and the fields you want to “$set” come from a mapper snap prior to the MongoDB Update snap.

1 Reply

  • Jake_pm's avatar
    Jake_pm
    New Contributor II

    Figured it out… here’s what the MongoDB Update snap should look like.

    and the fields you want to “$set” come from a mapper snap prior to the MongoDB Update snap.