Created
February 3, 2014 18:44
-
-
Save neumino/8789766 to your computer and use it in GitHub Desktop.
IRC - richcorbs - 2014/02/03
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('stuff').filter({'this_field' => 'this value'}).grouped_map_reduce( | |
lambda {|doc| doc[:this_other_field]} }, | |
lambda {|doc| [doc] }, | |
lambda {|left, right| left+right} | |
).run(conn) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment