Err: $not cannot have a regex, db -v=4.0.10

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Major - P3
    • None
    • Affects Version/s: 4.0.10
    • Component/s: None
    • None
    • Environment:
      Mac
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Hello MongoDB Community

      I am having trouble with $not operator. Getting error that "$not cannot have a regex". I looked into official documentation but it's says it shall work from version 4.0.7. So, I tried updating my mongodb and installed latest stable version 4.0.10. But still getting same error. I am attaching my error screenshot. Please let me know if I am doing anything wrong.

       

      Many thanks in advance.

            Assignee:
            Kelsey Schubert
            Reporter:
            Yeshu Kochher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: