mongoose search by name code example
Example: mongoose search by name
let ids = ['id1','id2','id3']
let data = await MyModel.find(
{'_id': { $in: ids}}
);
let ids = ['id1','id2','id3']
let data = await MyModel.find(
{'_id': { $in: ids}}
);