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

XMLWordPrintableJSON

    • 3
    • None

      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
              Reporter:
              Le Roux Bodenstein
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: