3 ms·
On a related note, if you like python and MongoDB you might like my MongoMagic library: https://github.com/redbeard0531/MongoMagic https://github.com/redbeard05
by mathias_10gen 16y ago
On a related note, if you like python and MongoDB you might like my MongoMagic library: https://github.com/redbeard0531/MongoMagic https://github.com/redbeard0531/MongoMagic. It lets you write queries like this: db.users.find(M.age > 21). This produces standard Mongo query objects so works with any ODM, or none at all. With Minimongo you could do something like Posts.find( 10 < M.comments.votes < 100 ).
- smlacy 16y agoYeah, I've seen libs like this, and because I'm using the MongoDB native JavaScript shell for a bunch of other random tasks, I wanted to keep my Python query syntax as close to pymongo and thus to the native JavaScript as possible. Thanks for the link, though.