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

$expr query is not valid

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.17.0
    • Component/s: Compass, Query
    • None
    • Environment:
      MacOS Mojave
    • Not Needed
    • Iteration Antelope, Iteration Bison, Iteration Cat

      The filter expression is not valid when using $expr to query documents.

      Example: {$expr: {$gt: [15,10]}}

       

      I use Compass to test complex queries before implementing them, but the validator is not working well, and it's not the first time... maybe we could get rid of the validator in a future release?

      A DB error is better than a broken validator...

            Assignee:
            alena.khineika@mongodb.com Alena Khineika
            Reporter:
            contact@aetium.com Pierre Bazoge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: