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
Hello, I'm experiencing this issue with sift@12.0.1 when performing and $in condition:
sift@12.0.1
$in
It seems that ['A', 'B'] match with the [] case.
['A', 'B']
[]
const sift = require('sift') const filter = { Demo: { $in: [null, [], 'C'] } } const fun = sift(filter) console.log(fun({ Demo: ['A', 'B'] })) // should be false but it return true console.log(fun({ Demo: null })) // true is ok console.log(fun({ Demo: [] })) // true is ok console.log(fun({ Demo: ['C'] })) // true is ok
I have tried it against Mongo 4.2.0 and the document doesn't match
The text was updated successfully, but these errors were encountered:
658d7ed
Thanks for the catch! Fix has been published to NPM as v13.0.2.
v13.0.2
Sorry, something went wrong.
No branches or pull requests
Hello,
I'm experiencing this issue with
sift@12.0.1
when performing and$in
condition:It seems that
['A', 'B']
match with the[]
case.I have tried it against Mongo 4.2.0 and the document doesn't match
The text was updated successfully, but these errors were encountered: