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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • No version
    • Affects Version/s: 1.19.12
    • Labels:
      None
    • Environment:
      Windows 10, 64-bit, MongoDB Compass Community
    • Not Needed

      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 ...}
      

       

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

              Created:
              Updated:
              Resolved: