Auto-generated code for the $geoNear aggregation stage is not a valid document

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor - P4
    • 1.31.3
    • Affects Version/s: None
    • Component/s: Aggregation pipeline
    • None
    • Environment:
      Atlas, Compass
    • 1
    • Iteration Anemone
    • Not Needed
    • None

      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.

            Assignee:
            Basit Chonka
            Reporter:
            Sam Brown
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: