Answers for "mongodb mongoose match by ids"

0

mongodb mongoose match by ids

ids = ids.map(function(el) { return mongoose.Types.ObjectId(el) })
{ "$match": { "_id": { "$in": ids } } }
Posted by: Guest on February-26-2021

Browse Popular Code Answers by Language