Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
*Location*: http://docs.mongodb.org/manual/reference/operator/aggregation/push/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36
*Referrer*: https://www.google.com/
*Screen Resolution*: 2560 x 1440
*repo*: docs
*source*: reference/operator/aggregation/push
*Location*: http://docs.mongodb.org/manual/reference/operator/aggregation/push/ *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36 *Referrer*: https://www.google.com/ *Screen Resolution*: 2560 x 1440 *repo*: docs *source*: reference/operator/aggregation/push
Description
Grouping the documents by the day and the year of the date field, the following operation uses the $addToSet accumulator to compute the list of items and quantities sold for each group:
Should be
Grouping the documents by the day and the year of the date field, the following operation uses the $push accumulator to compute the list of items and quantities sold for each group
Note the change to "$push".