3 ms·
Looks similar to MongoDB query syntax [1]. Is it inspired by that? What are similarities/differences? [1] http://docs.mongodb.org/master/tutorial/query-documen
by jlas 11y ago
Looks similar to MongoDB query syntax [1]. Is it inspired by that? What are similarities/differences?
[1] http://docs.mongodb.org/master/tutorial/query-documents/ http://docs.mongodb.org/master/tutorial/query-documents/
- WhitneyLand 11y agoYes it looks very similar, having built a query builder for it: http://youtu.be/fZ3_NGLKE2U http://youtu.be/fZ3_NGLKE2U
- jviotti 11y agoYeah, it was inspired by MongoDB, but then deviates in some ways: - Conjunction and disjunction operations are defined by arrays in MongoDB, but as Objects in Queryl. For example: { $or: [ { foo: { $gt: 100 } }, { bar: { $gt: 200 } } ] } vs: { $or: { $gt: { foo: 100, bar: 200 } } } - As you can notice in the above example, in MongoDB, you declare the property and the specific query inside, while in Queryl is the opposite: you declare the operation, and then the property. - Of course, Queryl is still in it's infancy, and doesn't support as many operations as MongoDB does (but will be added eventually). There are probably more differences that I'm not spotting due to lack of in depth knowledge in MongoDB queries.