-
Type: Story
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation pipeline
-
None
-
2
-
Iteration Johannesburg
The $sortByCount template example in Aggregation Pipeline Builder defaults to the format for an expression, which is confusing for users who try to use a string path (also supported and commonly used).
The expression syntax is working as designed but there could be a clearer hint in the placeholder comment in Compass to avoid frustration for learners.
Related forum discussion: https://www.mongodb.com/community/forums/t/does-sortbycount-work-in-compass/52942
- is related to
-
COMPASS-3195 $sortByCount in Aggregation should not have curly braces
- Closed