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

mongodb-query-parser incorrectly returns a blank string for invalid filters

    • 3

      Things like { i: $} confuses queryParser and ultimately it sets filter to '' whereas it has to be a {} (if valid) or false (if invalid). This breaks packages/compass-query-bar/src/stores/query-bar-store.js

      See https://github.com/mongodb-js/compass/blob/3a1f76ca6ceef9f7e5fbcbde8aa23f21c0758c21/packages/compass-query-bar/src/stores/query-bar-store.js#L398-L400

            Assignee:
            Unassigned Unassigned
            Reporter:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: