multi updates
============
db.<coll>.update(<where>,<obj>,<upsert T/F>,<multi T/F>
db.orders.update({order_id:1234},
{$inc:{priority:1}},
false,
true
}
User update may have intended to update multiple documents but it will
exist prematurely due to "multi set to FALSE"
============
db.<coll>.update(<where>,<obj>,<upsert T/F>,<multi T/F>
db.orders.update({order_id:1234},
{$inc:{priority:1}},
false,
true
}
User update may have intended to update multiple documents but it will
exist prematurely due to "multi set to FALSE"
No comments:
Post a Comment