Created
February 10, 2014 17:55
-
-
Save neumino/8920871 to your computer and use it in GitHub Desktop.
10/02/2014 - @miguelping - Twitter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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