-
Type: Bug
-
Resolution: Works as Designed
-
Priority: Minor - P4
-
Affects Version/s: 1.39.4
-
Component/s: Aggregation pipeline, Autocomplete
-
None
-
Environment:OS: macos
-
Not Needed
Problem Statement/Rationale
In the aggregation builder the template for a $sortByCount stage is:
/** * expression: Grouping expression or string. */ { expression }
the braces are invalid a valid stage is:
{$sortByCount: "$fieldName"}
so the template should be:
/** * expression: Grouping expression or string. */ expression
**
Please be sure to attach relevant logs with any sensitive data redacted.
How to retrieve logs for: Compass; Shell
Steps to Reproduce
Create a $sortByStage in the aggregation builder
Expected Results
template is valid
Actual Results
Error message "Stage value is invalid"