We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When querying with $lt or $lte, underscore-query returns true for null values.
In javascript:
var a = {test: null}; a.test < 1 == true,
However in mongo:
db.col.insert({"test": null}) //WriteResult({ "nInserted" : 1 }) db.col.find({"test": {$lt: 1}}).count() //0
The text was updated successfully, but these errors were encountered:
6b7eaca
Interestingly mongodb doesn't do this with $mod and will treat null as 0 in this case
mongodb
$mod
null
0
ticket
Sorry, something went wrong.
#23 add tests for with null (see SERVER-23664)
18baffa
https://jira.mongodb.org/browse/SERVER-23664
No branches or pull requests
When querying with $lt or $lte, underscore-query returns true for null values.
In javascript:
However in mongo:
The text was updated successfully, but these errors were encountered: