mongodb 更新记录
db.getCollection('TestTask').update(
// query
{
"TestSettings.AutoTesterAccount" : "Test1"
},
// update
{$set:
{
"TestSettings.AutoTesterPassword":"*********"
}
},
// options
{
"multi" : true, // update only one document
"upsert" : false // insert a new document, if no existing document match the query
}
);