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.

       

       

       

            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: