Invitlist is an array. how should all _id attributes be changed in invitlist?

  mongodb, question
const filter = {
 Auth: ['experts'],
 _id:inviteList,
 };
 return Person.find(filter).map((p) => {
 p.doctor.personID = p._id;
 return p.doctor;
 })

Invitlist is an array. how should all _id attributes be changed in invitlist?
Just want to filter all auth attributes in the collection are experts and their-id corresponds to the invitlist array. the correct situation is that one can be filtered, but the invitlist here is an array. how should this filter condition be written?

const filter = {
 Auth: ['experts'],
 username:user.username,
 _id:'id',
 };

A situation.

What you may be saying is$in?

const filter = {
 Auth: ['experts'],
 username:user.username,
 _id: {$in: inviteList}
 };