📅  最后修改于: 2022-03-11 15:00:12.100000             🧑  作者: Mango
代码示例5
try { db.restaurant.updateOne( { "name" : "Central Perk Cafe" }, { $set: { "violations" : 3 } } );} catch (e) { print(e);}