Open heynemann opened 10 years ago
Implement the sum Aggregation as in:
prices=Aggregation.sum(Document.price)
This translates to aggregation query:
totalPrice: { $sum: "$price" }
As can be seen in http://docs.mongodb.org/manual/reference/aggregation/group/#pipe._S_group.
This ticket is related to #46.
Implement the sum Aggregation as in:
This translates to aggregation query:
As can be seen in http://docs.mongodb.org/manual/reference/aggregation/group/#pipe._S_group.
This ticket is related to #46.