Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var user = User.find(
- {},
- {},
- {skip: skip, limit: limit},
- function(err, docs) {
- if (!err) {
- res.json({users: docs, next: 0} );
- } else {
- throw err;
- }
- });
- if ( !docs ) {
- res.json({users: [], next: 0});
- }
Add Comment
Please, Sign In to add comment