Jake_pm
3 years agoNew Contributor II
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.