Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose updatemany example

User.update({"created": false}, {"$set":{"created": true}}, {"multi": true}, (err, writeResult) => {});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mongoose #updatemany
ADD COMMENT
Topic
Name
3+8 =