Skip to content

Instantly share code, notes, and snippets.

@aroman
Created March 17, 2012 23:31
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 aroman/2066519 to your computer and use it in GitHub Desktop.
Save aroman/2066519 to your computer and use it in GitHub Desktop.
Course
.where('owner', token.username)
.run (err, courses) ->
Assignment
.where('course_id')
.in(_.pluck(courses, "_id"))
.run (err, assignments) ->
cb _.groupBy(assignments, "course_id")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment