Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {id: 123, user: 'User14', score: 101}
- {id: 231, user: 'User10', score: 400}
- {id: 412, user: 'User90', score: 244}
- {id: 111, user: 'User12', score: 310}
- {id: 221, user: 'User88', score: 900}
- {id: 521, user: 'User13', score: 103}
- + thousands more...
- highscores
- .find()
- .sort({'score': -1})
- .limit(5)
- .exec(function(err, users) { ...code... });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement