2 ms·
I'd say RethinkDB does it best. You just chain some regular function calls and pass some lambdas here and there. It looks and feels very natural. Plus, that "da
by ahoge 12y ago
I'd say RethinkDB does it best. You just chain some regular function calls and pass some lambdas here and there. It looks and feels very natural. Plus, that "data explorer" thing lets you test those queries quickly.
Generating a list of all used tags:
r.table('posts')('tags').reduce((a, b) => a.setUnion(b))
Grabbing all posts with the 'foo' tag:
r.table('posts').filter((doc) => doc('tags').contains('foo'))
- reubenbond 12y agoDocumentDB has a similar looking (maybe not as powerful) interface: context.collection.filter(function(doc) { return doc.city == "Melbourne" && doc.rating > 4.5; }).map(function(doc) { return doc.displayName; });