SHARE
TWEET

Untitled

a guest Jan 18th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var user = User.find(
  2.     {},
  3.     {},
  4.     {skip: skip, limit: limit},
  5.     function(err, docs) {
  6.         if (!err) {
  7.             res.json({users: docs, next: 0} );
  8.         } else {
  9.             throw err;
  10.         }
  11.     });
  12.    
  13. if ( !docs ) {
  14.   res.json({users: [], next: 0});
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top