Created
December 23, 2015 11:12
-
-
Save mrm8488/229752b1b7ca3edd6c78 to your computer and use it in GitHub Desktop.
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
var User = require('route/to/models/User.js'); | |
// Find a user by his ID | |
User.findById(<id>, function(error, user) { | |
User.getFriends(user.id, function(error2, friends) { | |
User.getJobs(user.id, function(error3, jobs) { | |
... | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment