We are writing a simple ORM for python called maroon. (http://github.com/nod/maroon) Our library builds mongo queries dynamically from python code that looks like this:
results = Things.find((j==3)&(k>10))
Right now we have to treat equality as a special case when we do ands and ors:
db.things.find({j: 3, k: {$gt: 10} });
It it would make our code simpler and more consistent if $eq was an operator. For example:
db.things.find({j: {$eq: 3}, k: {$gt: 10} });
- depends on
-
SERVER-6400 Refactor Matcher/QueryExpression
- Closed
- is related to
-
SERVER-14973 Support $eq with sharding
- Closed
- tested by
-
SERVER-16317 Additional tests for $eq operator
- Closed