Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. var scoresRef = firebase.database().ref("purchases");
  2. scoresRef.orderByChild("products").on("value", function(snapshot) {
  3. snapshot.forEach(function(data) {
  4. console.log("The " + data.id + " data is " + data.val());
  5. });
  6. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement