3 ms·
You might like coffeescript. db.orders.aggregate [ $group: _id: cust_id: "$cust_id" ord_date: "$ord_date" total:
by woah 14y ago
You might like coffeescript.
db.orders.aggregate [
$group:
_id:
cust_id: "$cust_id"
ord_date: "$ord_date"
total:
$sum: "$price"
,
$match:
total:
$gt: 250
]