[COMPASS-4996] Improve $sortByCount template example to clarify expression vs string syntax Created: 08/Aug/21 Updated: 06/Sep/22 |
|
| Status: | Open |
| Project: | Compass |
| Component/s: | Aggregation pipeline |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Story | Priority: | Major - P3 |
| Reporter: | Stennie Steneker (Inactive) | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Story Points: | 2 | ||||||||
| Sprint: | Iteration Johannesburg | ||||||||
| Description |
|
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 |