I want to find any entries in my collection 'groups' where the id of the object in the array 'games' is in an array of ids.
The logic in JS:
for (const game in games) {
return game.find(field => field.id.indexOf(arrayOfIds));
}
And my idea of logic for mongoose:
db.groups.find({ "games.id": { $in: ["5a945...", "1701fa..."] } });
