Details
-
Improvement
-
Resolution: Done
-
Trivial - P5
-
None
-
*Location*: http://docs.mongodb.org/manual/reference/operator/aggregation/project/
*User-Agent*: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0
*Referrer*: http://www.google.fr/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CDUQFjAA&url=http%3A%2F%2Fdocs.mongodb.org%2Fmanual%2Freference%2Foperator%2Faggregation%2Fproject&ei=fv8OU-qENKLO0wWywIHQCQ&usg=AFQjCNFgYl_3aM1HWDoBv0Bn7e8ghdGaag&bvm=bv.61965928,d.d2k
*Screen Resolution*: 1366 x 768
*repo*: docs
*source*: reference/operator/aggregation/project
*Location*: http://docs.mongodb.org/manual/reference/operator/aggregation/project/ *User-Agent*: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0 *Referrer*: http://www.google.fr/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CDUQFjAA&url=http%3A%2F%2Fdocs.mongodb.org%2Fmanual%2Freference%2Foperator%2Faggregation%2Fproject&ei=fv8OU-qENKLO0wWywIHQCQ&usg=AFQjCNFgYl_3aM1HWDoBv0Bn7e8ghdGaag&bvm=bv.61965928,d.d2k *Screen Resolution*: 1366 x 768 *repo*: docs *source*: reference/operator/aggregation/project
Description
According to the collection structure, sorting by $grades.grade doesn't exist.
This should be $grades.0.grade.
The $ projection limit to one value but $grades is still an array.