var name = 'Peter'; model.findOne({name: new RegExp('^'+name+'$', "i")}, function(err, doc) { //Do your action here.. });
let ids = ['id1','id2','id3'] let data = await MyModel.find( {'_id': { $in: ids}} );