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

Cannot use "$cond" in aggregate pipeline in an "$expr"

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.19.0
    • Affects Version/s: 1.16.0-beta.7, 1.15.4
    • Component/s: Compass
    • Labels:
      None
    • Iteration Antelope, Iteration Bison

      Tested in compass 1.15.4 and 1.16.0-beta.7, the aggregation pipeline builder gives error:

      Field must not begin with '$' or '.', field path was: $cond

      However, same query with "$cond" runs fine in mongo shell. Please see the screenshots attached.

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            nishant.bhardwaj@mongodb.com Nishant Bhardwaj
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: