Created
November 2, 2016 00:57
-
-
Save deltaepsilon/816756a121338ab0ec6b0f1b56f4b801 to your computer and use it in GitHub Desktop.
This file contains 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 userRef = ref.child(‘users/’ + userId); | |
var userTransactionsRef = ref.child(‘transactions/’ + userId); | |
Promise.all([ | |
userRef.once(‘value’), | |
userTransactionsRef.once(‘value’) | |
]).then(function (snaps) { | |
var user = snaps[0].val(); | |
var userTransactions = snaps[1].val(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment