Answers for "mongo updatemany query"

3

mongo updatemany query

try {
   db.restaurant.updateMany(
      { violations: { $gt: 4 } },
      { $set: { "Review" : true } }
   );
} catch (e) {
   print(e);
}
Posted by: Guest on January-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language