Skip to content

Instantly share code, notes, and snippets.

@neumino
Created February 10, 2014 17:55
Show Gist options
  • Save neumino/8920871 to your computer and use it in GitHub Desktop.
Save neumino/8920871 to your computer and use it in GitHub Desktop.
10/02/2014 - @miguelping - Twitter
r.table("foo").groupedMapReduce(
function(doc) { return doc("categorie") },
function(doc) { return doc.pluck("a", "b") },
function(left, right) {
return {
a: left("a").add(right("a")),
b: left("b").add(right("b"))
}
}
).run(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment