News for hackers. Stuff that matters.
Re:JavaScript query language to perform complex object searches by smizell on Monday September 21, 2015 @11:13PM (#10256445)
It always feels like we keep reinventing Lisp. You could do something like:

  ['contains?', ['list', 1, 2, 3], 1]
Instead of:

  {
    $contain: {
      foo: 1
    }
  }, {
    foo: [ 1, 2, 3 ]
  }
Re:JavaScript query language to perform complex object searches by jviotti on Tuesday September 22, 2015 @09:21AM (#10258356)
Haha definitely! You could write a small module that compiles the lisp-like syntax that you mention above to a Queryl object.