Skip to content

Instantly share code, notes, and snippets.

@bmsterling
Created May 17, 2013 16:55
Show Gist options
  • Save bmsterling/5600435 to your computer and use it in GitHub Desktop.
Save bmsterling/5600435 to your computer and use it in GitHub Desktop.
Selecting record less than a certain `_id`
Photo.find(
'_id' : {'$lte' : firstid},
'url thumbnailUrl',
{
skip : 0,
limit : 9,
sort : { 'created': -1 }
},
function (err, photos) {
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment