Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
*Location*: https://docs.mongodb.com/master/reference/operator/aggregation/sortByCount/#pipe._S_sortByCount
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
*Referrer*: https://docs.mongodb.com/master/release-notes/3.4/
*Screen Resolution*: 1680 x 1050
*Location*: https://docs.mongodb.com/master/reference/operator/aggregation/sortByCount/#pipe._S_sortByCount *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 *Referrer*: https://docs.mongodb.com/master/release-notes/3.4/ *Screen Resolution*: 1680 x 1050
Description
Restriction listed "The expression can not evaluate to an object" is not correct.
The only thing not allowed is an object.
I.e:
{ "foo": ___ }
is not allowed, but "$f" may evaluate/expand to an object and that's allowed also. So literal object specification is not allowed but expression can absolutely evaluate to an object as its result.