Created
May 17, 2013 16:55
-
-
Save bmsterling/5600435 to your computer and use it in GitHub Desktop.
Selecting record less than a certain `_id`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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