Skip to content

Instantly share code, notes, and snippets.

@jribnik
Last active February 4, 2016 17:28
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 jribnik/ad0c50f34c84ea5fc648 to your computer and use it in GitHub Desktop.
Save jribnik/ad0c50f34c84ea5fc648 to your computer and use it in GitHub Desktop.
$group stage of simulation pipeline
group = {"$group":
{
"_id": "$team",
"yards": {"$sum": "$yards"},
"turnovers": {"$sum": "$turnovers"}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment