Skip to content

Instantly share code, notes, and snippets.

@pionize

pionize/.js Secret

Created April 27, 2017 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pionize/9fa23504320c2aeb17b9e5e12368384b to your computer and use it in GitHub Desktop.
Save pionize/9fa23504320c2aeb17b9e5e12368384b to your computer and use it in GitHub Desktop.
getUserByName('andrew').then(function (user) {
return getUserAccountById(user.id).then(function (userAccount) {
// now, I have both the "user" and the "userAccount"
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment