如何在Spring Data MongoDB中进行聚合操作?
db.order.aggregate([
{ $match: { quantity: { $gt:1 } } },
{ $group: { _id: "$giftCard", count: { $sum:1 } } }
])