$elemMatch
A query operator that requires one single array element to meet all the given conditions. It finds orders with at least 2 of one particular SKU, instead of matching the SKU in one item and the quantity in another.
A query operator that requires one single array element to meet all the given conditions. It finds orders with at least 2 of one particular SKU, instead of matching the SKU in one item and the quantity in another.