Skip to content

Instantly share code, notes, and snippets.

@philips
Created February 18, 2014 02:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philips/9063295 to your computer and use it in GitHub Desktop.
Save philips/9063295 to your computer and use it in GitHub Desktop.
r.db('roller').table('app_event').groupedMapReduce(
function(event) { return event('DateTime').minutes(); },
function(event) { return 1; },
function(acc, count) { return acc.add(count); }, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment