Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4996

Improve $sortByCount template example to clarify expression vs string syntax

    • Type: Icon: Story Story
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 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

            Assignee:
            Unassigned Unassigned
            Reporter:
            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: