Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
*Location*: http://docs.mongodb.org/manual/reference/aggregation/group/#stage._S_group
*User-Agent*: Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0
*Referrer*: http://docs.mongodb.org/manual/core/aggregation/
*Screen Resolution*: 2048 x 1152
*repo*: docs
*source*: reference/aggregation/group
*Location*: http://docs.mongodb.org/manual/reference/aggregation/group/#stage._S_group *User-Agent*: Mozilla/5.0 (X11; Linux x86_64; rv:21.0) Gecko/20100101 Firefox/21.0 *Referrer*: http://docs.mongodb.org/manual/core/aggregation/ *Screen Resolution*: 2048 x 1152 *repo*: docs *source*: reference/aggregation/group
Description
Any expression (things usable in $project) are also valid as the _id field and as input to the accumulators. FieldPaths, Objects, and Constants are just particular types of expressions, there is nothing special about them.