Mongodb – Filter in Mongo DB with $in
I cannot filter items that only have a specific role: When I try to filter only the element with rol ROL_CONTADOR return all elements of items, but the second element in items, not should filter. db.menu.find({ "items": { "$elemMatch": {…