mongoose find data created by specific owner code example
Example 1: mongoose response to object
MyModel.findOne().lean().exec(function(err, doc) {
doc.addedProperty = 'foobar';
res.json(doc);
});
Example 2: mongoose search by name
let ids = ['id1','id2','id3']
let data = await MyModel.find(
{'_id': { $in: ids}}
);