Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var scoresRef = firebase.database().ref("purchases");
- scoresRef.orderByChild("products").on("value", function(snapshot) {
- snapshot.forEach(function(data) {
- console.log("The " + data.id + " data is " + data.val());
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement