Im trying to make this operation in java:
db.product.aggregate([{ $match: { gtin: { $in: ["7890203", "7890204" ]}}}]) .group({ _id: &quo