Skip to content

Instantly share code, notes, and snippets.

@yeehaa123
Created July 7, 2016 22:26
Show Gist options
  • Save yeehaa123/35a59fea81efd6af8a45110f6fc87428 to your computer and use it in GitHub Desktop.
Save yeehaa123/35a59fea81efd6af8a45110f6fc87428 to your computer and use it in GitHub Desktop.
r.db('offcourse').table('bookmarks')
.innerJoin(r.db('offcourse').table('resources'), function(bm, rs) {
return bm('url').eq(rs('url'))
}).map(function(j) {return j('left')
.merge({'keywords': j('right')('keywords')
.map(function(kw){ return kw('name')})})})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment