Skip to content

Instantly share code, notes, and snippets.

@rupertbates
Created January 7, 2013 17:49
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 rupertbates/4476945 to your computer and use it in GitHub Desktop.
Save rupertbates/4476945 to your computer and use it in GitHub Desktop.
Find Mongo matchWeek records between a certain number, filter the result fields and then sort
db.matchWeek.find({number:{$gt:18, $lt:23}}, {number: 1, startDate:1, endDate:1}).sort({number:1}).pretty()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment