Answers for "update multiple docs mongoose"

1

mongoose find multiple and update

Model.updateMany({}, {})
Posted by: Guest on February-10-2021
0

Update multiple documents by id set. Mongoose

Element.update(
   { _id: { $in: ['id1', 'id2', 'id3'] } },
   { $set: { visibility : yourvisibility } },
   {multi: true}
)
Posted by: Guest on September-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language