Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose mongodb updateone

try {   db.restaurant.updateOne(      { "name" : "Central Perk Cafe" },      { $set: { "violations" : 3 } }   );} catch (e) {   print(e);}
Source by docs.mongodb.com #
 
PREVIOUS NEXT
Tagged: #mongoose #mongodb #updateone
ADD COMMENT
Topic
Name
1+8 =