Adds '$not' as a logical operator, fixing issue #715 by JPBergsma · Pull Request #716 · mongomock/mongomock

Conversation

@JPBergsma

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.

@codecov

2 participants

@JPBergsma @pcorpet