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

XMLWordPrintableJSON

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

      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.

        1. Screen Shot 2018-10-04 at 9.01.26 PM.png
          699 kB
          Nishant Bhardwaj
        2. Screen Shot 2018-10-04 at 9.01.38 PM.png
          92 kB
          Nishant Bhardwaj

            Assignee:
            Durran Jordan
            Reporter:
            Nishant Bhardwaj
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: