cancel
Showing results for 
Search instead for 
Did you mean: 

Mongo DB Update Snap - Expression for Query

Jake_pm
New Contributor II

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?
image

1 ACCEPTED SOLUTION

Jake_pm
New Contributor II

Figured it out… here’s what the MongoDB Update snap should look like.
image
and the fields you want to “$set” come from a mapper snap prior to the MongoDB Update snap.
image

View solution in original post

1 REPLY 1

Jake_pm
New Contributor II

Figured it out… here’s what the MongoDB Update snap should look like.
image
and the fields you want to “$set” come from a mapper snap prior to the MongoDB Update snap.
image