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

Cannot issue $expr $or query in Compass.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.22.0
    • Affects Version/s: 1.20.3
    • Component/s: Compass, Grammar
    • None
    • Environment:
      Compass 1.20.4, MongoDB 4.2.3. Ubuntu Linux 18.04
    • Iteration Zebra

      Compass thinks a query using $expr and $or (probably other logical operations as well) is not proper syntax.

      A query like:

      { $expr: { $or: [ true, true ] } }

       

      should be valid, but isn't, though the following does work:

      
      { $expr: { $in: [ true, true ] } }

      How about adding a checkbox to Compass along the lines of:

      "Yeah I know you think the query syntax is incorrect, but execute the @#%$ing query anyway"

      ....so that when we run into valid queries that Compass doesn't understand, we can still make progress?

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            ataramina@shorecg.com Andrzej Taramina
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: