Answers for "Firebase real-time queries"

0

Firebase real-time queries

var ratingRef = firebase.database().ref("ratings/");

ratingRef.orderByValue().on("value", function(data) {
   
   data.forEach(function(data) {
      console.log("The " + data.key + " rating is " + data.val());
   });
   
});
Posted by: Guest on May-11-2021

Browse Popular Code Answers by Language