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

XMLWordPrintableJSON

    • None
    • None

       

      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
              Reporter:
              Brian Blevins
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: