Querying Array From Firebase (react Native)
I'm new to react-native and firebase, and I am building an app. I stumble upon a problem using 'array' in firebase (i know that firebase doesn't work with array), but I want to kno
Solution 1:
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());
});
});
try this method and review more here
Post a Comment for "Querying Array From Firebase (react Native)"