mquery: MongoDB query builder

239 views
Skip to first unread message

Aaron Heckmann

unread,
May 6, 2013, 4:05:27 PM5/6/13
to mongoo...@googlegroups.com, node-mong...@googlegroups.com
Hi node/mongodb fans,

I ripped the query builder out of mongoose to work stand-alone in case you'd like to use its interface without all the mongoose overhead. Long term I hope to have it running in the MongoDB shell and the browser as well.


Examples in the documentation are a little thin yet but that will improve.

--
Aaron


Jonathan Ong

unread,
May 6, 2013, 10:55:47 PM5/6/13
to node-mong...@googlegroups.com, mongoo...@googlegroups.com
Is there a specific use case for this, specifically for people who don't use mongoose?

Aaron Heckmann

unread,
May 7, 2013, 11:26:39 AM5/7/13
to node-mong...@googlegroups.com, mongoo...@googlegroups.com
The goal is a common API which works across environments. Only nodejs is supported today but ideally this will run in the mongodb shell and the browser. 

You might think of it as potentially even part of something bigger, like an entire js interface that's portable - who knows. That's part of the fun of this, seeing what's actually possible. Separating it promotes alternative use cases and helps discover shortcomings as well.

I'm used to using the query builder in mongoose so when working on projects that directly use the driver this is comfortable to me.

Mongoose will use this in 3.7 but not everyone likes fluent interfaces. Mongoose v4 will likely not include it and instead allow developers to opt-in through a plugin. 
--
You received this message because you are subscribed to the Google Groups "node-mongodb-native" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-mongodb-na...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 


--
Aaron



Reply all
Reply to author
Forward
0 new messages