-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Aggregation pipeline
-
None
-
Environment:Atlas, Compass
-
1
-
Iteration Anemone
-
Not Needed
Problem Statement/Rationale
When using compass or atlas to build an aggregation pipeline, the auto-generated code for the $geoNear aggregation stage is not a valid document and requires modifications.
Steps to Reproduce
Add a $geoNear stage
Expected Results
A valid document to be edited before running a query
Actual Results
An invalid document, which does not have its comment incorrectly closed. I think the issue is at this line: https://github.com/mongodb-js/ace-autocompleter/blob/master/lib/constants/stage-operators.js#L153
Additional Notes
Any additional information that may be useful to include.