News for hackers. Stuff that matters.
Re:JavaScript query language to perform complex object searches by jlas on Monday September 21, 2015 @07:54PM (#10255886)
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/

Re:JavaScript query language to perform complex object searches by jviotti on Tuesday September 22, 2015 @09:15AM (#10258320)
Yeah, 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.

Re:JavaScript query language to perform complex object searches by WhitneyLand on Monday September 21, 2015 @10:26PM (#10256341)
Yes it looks very similar, having built a query builder for it: http://youtu.be/fZ3_NGLKE2U