Hacker News new | past | comments | ask | show | jobs | submit login

You don't actually need to use functions in ReQL either (although you can). For example

  r.table('users').filter(function(row) {
    return row('age').gt(30);
  })
Could be expressed as:

  r.table('users').filter(r.row('age').gt(30))
That being said aqb looks pretty cool and quite similar to ReQL.



Neat. I actually prefer the "infix" style for operators (i.e. having the methods on the values instead of on the helper) and I'll see whether I can adjust AQB to support that.


I've implemented the infix/ReQL style operators and published them in the latest release:

https://github.com/arangodb/aqbjs/blob/v1.10.0/README.md#aql...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: