Mongoose mongodb updateOne
try { db.restaurant.updateOne( { "name" : "Central Perk Cafe" }, { $set: { "violations" : 3 } } );} catch (e) { print(e);}
Ataur Rahman