Skip to content

Instantly share code, notes, and snippets.

@neumino
Created October 17, 2013 17:24
Show Gist options
  • Save neumino/7028877 to your computer and use it in GitHub Desktop.
Save neumino/7028877 to your computer and use it in GitHub Desktop.
r.table("t1").map( function(t1_doc) {
return t1_doc.merge({
names: t1_doc("names").map( function(name) {
return r.table("t2").get(name)("name")
})
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment