> db.testcollection.find()
{ "_id" : 1, "priority" : 2, "inprogress" : false, "name" : "abc" }> db.runCommand({
... findandmodify : "testcollection",
... query :
,
... sort :
,
... update : { $set :
},
... new : true
... })
{
"value" :
,
"ok" : 1
}
> db.testcollection.find()
>