I was checking logic for querying on non-values and noticed when using the mongo shell, it differentiates between undefined and null v
mongo
undefined
null
In case you wonder, why MongoDB casts undefined to null instead of just ignoring such properties - ignoreUndefined flag could solve this behaviour.
ignoreUndefined
https://mongodb.github.io/node-mongodb-native/2.1/reference/connecting/connection-settings/