Details
-
Improvement
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
*Location*: http://docs.mongodb.org/manual/reference/operator/aggregation/project/#pipe._S_project
*User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36
*Referrer*: http://docs.mongodb.org/manual/reference/operator/aggregation/group/
*Screen Resolution*: 1920 x 1080
*repo*: docs
*source*: reference/operator/aggregation/project
*Location*: http://docs.mongodb.org/manual/reference/operator/aggregation/project/#pipe._S_project *User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 *Referrer*: http://docs.mongodb.org/manual/reference/operator/aggregation/group/ *Screen Resolution*: 1920 x 1080 *repo*: docs *source*: reference/operator/aggregation/project
Description
The paragraph:
Projections can also add computed fields to the document stream passing through the pipeline. A computed field can use any of the expression operators or for text search, use the $meta operator. Consider the following example:
is mis leading. $sum is an expression operator but cannot be used with $project
Attachments
Issue Links
- is related to
-
DOCS-2981 agg rewrite
-
- Closed
-