4 ms·
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);
by coffeemug 12y ago
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.
- pluma 12y agoNeat. 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.
- pluma 12y agoI'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-operations https://github.com/arangodb/aqbjs/blob/v1.10.0/README.md#aql...