Adds '$not' as a logical operator, fixing issue #715 by JPBergsma · Pull Request #716 · mongomock/mongomock
Conversation
MongoDB correctly processes filters with double negation. For example: {a: {'$not': {'$not': {'$gte': 6}}}}
This PR adds '$not' as a logical operator, so this now also correctly handled in mongomock.
I am not yet that experienced with programming in python, so I hope I did everything correctly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters