[DOCS-9118] Comment on: "manual/reference/operator/aggregation/sortByCount.txt" Created: 09/Oct/16  Updated: 30/Oct/23  Resolved: 07/Feb/18

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Asya Kamsky Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: collector-298ba4e7, docs-triage
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

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


Participants:
Days since reply: 6 years, 1 week ago

 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.



 Comments   
Comment by Githook User [ 07/Feb/18 ]

Author:

{'email': 'kay.kim@10gen.com', 'name': 'kay', 'username': 'kay-kim'}

Message: DOCS-9118: clarify sortByCount expression
Branch: v3.4
https://github.com/mongodb/docs/commit/a620e28f72a6552032d207c0367fe86741c09182

Comment by Githook User [ 07/Feb/18 ]

Author:

{'email': 'kay.kim@10gen.com', 'name': 'kay', 'username': 'kay-kim'}

Message: DOCS-9118: clarify sortByCount expression
Branch: master
https://github.com/mongodb/docs/commit/2302a7e870f91b595a201f2db71c5a8290d137a9

Generated at Thu Feb 08 07:57:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.