[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:
Related
is related to COMPASS-3195 $sortByCount in Aggregation should no... Closed
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


Generated at Wed Feb 07 22:38:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.