Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Update multiple documents by id set. Mongoose

Element.update(
   { _id: { $in: ['id1', 'id2', 'id3'] } },
   { $set: { visibility : yourvisibility } },
   {multi: true}
)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Update #multiple #documents #id #Mongoose
ADD COMMENT
Topic
Name
4+6 =