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

Compass aggregation incorrectly pre-parses a pipeline and reports an error when there isn't one

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • No version
    • 1.19.12
    • None
    • Windows 10, 64-bit, MongoDB Compass Community
    • Not Needed

    Description

      On the Aggregations tab when this pipeline is used:

      , an error Expected "[" or AggregationStage but "{" found. is reported. When the pipeline is executed in Mongo Shell, there's no error:

      > db.col.aggregate([{
      ...   $match: {
      ...     $expr: {
      ...       $eq: [
      ...         "$_id", ObjectId("5d768411c6575d0078903a38")
      ...       ]
      ...     }
      ...   }
      ... }])
      { "_id" : ObjectId("5d768411c6575d0078903a38"), ... rest of results ...}
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            cis74633@bell.net Andre M
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: