Answers for "Update multiple documents by id set. Mongoose"

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 "Update multiple documents by id set. Mongoose"

Code answers related to "Javascript"

Browse Popular Code Answers by Language