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

No support for negative regex, { $not: /regex/ } not accepted in query bar

       

      In the mongo shell, the $not operator is allowed and documented for use against regular expressions.

      $not

      db.inventory.find( { item: { $not: /^p.*/ } } )

      However, the Compass query bar does not accept this query.

      Please refer to the screenshots with both standard regex expression and $regex.

       

       

       

        1. image-2018-09-09-09-31-50-970.png
          31 kB
          Brian Blevins
        2. image-2018-09-09-09-32-25-075.png
          48 kB
          Brian Blevins

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            brian.blevins@mongodb.com Brian Blevins
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: