Created
May 3, 2016 05:06
-
-
Save brayoh/95e7b409caeb5d4f807e25ec0ee64fc1 to your computer and use it in GitHub Desktop.
mongoose node .js query pagination
This file contains 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
#how to paginate results in mongoose queries | |
MyModel.find(query, fields, { skip: 10, limit: 5 }, function(err, results) { ... }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment