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
Mim does not match mongodb's behavior concerning matching sub-lists with $ne when the field is an empty list.
self.bind.db.coll.insert( {'_id':'foo', 'hist': [{'int': 2}]} ) self.bind.db.coll.insert( {'_id':'foo2', 'hist': []} ) self.bind.db.coll.insert( {'_id':'foo3'} ) self.bind.db.coll.insert( {'_id':'foo4', 'hist': [{'foo': 'bar'}]} ) objs = self.coll.find({'hist.int': {'$ne': 5235}}).all() # this returns foo, foo3, foo4 but should also return foo2
Note https://docs.mongodb.com/manual/reference/operator/query/ne/index.html doesn't specify behavior for empty lists, but we should match how mongodb actually works.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Mim does not match mongodb's behavior concerning matching sub-lists with $ne when the field is an empty list.
Note https://docs.mongodb.com/manual/reference/operator/query/ne/index.html doesn't specify behavior for empty lists, but we should match how mongodb actually works.
The text was updated successfully, but these errors were encountered: