Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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
5+5 =