mongodb model.updatemany code example
Example 1: mongo updatemany query
try {
db.restaurant.updateMany(
{ violations: { $gt: 4 } },
{ $set: { "Review" : true } }
);
} catch (e) {
print(e);
}
Example 2: updatemany mongodb
db.collection.updateMany(filter, update, options)