Simple, self-explanatory code snippets.
db.runCommand({
update: "collection_name",
updates: [
{
q: {
"field1": "value1",
"field2": "value2",
},
u: {
$set: {
"field3": "value3",
multi: false,
upsert: false,
}
],
});
No comments:
Post a Comment