Ids is the array of object ids:
const ids = [
'4ed3ede8844f0f351100000c',
'4ed3f117a844e0471100000d',
'4ed3f18132f50c491100000e',
];
With callback:
User.find().where('_id').in(ids).exec(callback);
With async function:
records = await User.find().where('_id').in(ids).exec();