Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

update many mongoose

// Update all documents in the `mymodels` collection
await MyModel.updateMany({}, { $set: { name: 'foo' } });
Source by mongoosejs.com #
 
PREVIOUS NEXT
Tagged: #update #mongoose
ADD COMMENT
Topic
Name
7+6 =