These are chat archives for Automattic/mongoose

3rd
Jul 2016
Khaled Mohamed
@KhaledMohamedP
Jul 03 2016 17:48
Does anyone know how can I update a list of mongoose docs at once. The following is an attempt to solve this problem, but it doesn't work?!
UserModel.update({_id: {$in: userListIds}},  {'$set': {name: 'John Doe'}},  {multi: true},  next)