Answer the question
In order to leave comments, you need to log in
How to formulate a query in firebase?
Hello, I'm asking for help in formulating a request to the Firebase Realtime DB from Node.js. There is a code
var array = [];
snapshot.forEach(function(childSnapshot) {//Получаем путь к нужным таблицам childSnapshot.val().id
firebase.database().ref("/posts/" + childSnapshot.val().id).once('value', (snapshot) => {
array.push(snapshot.key);
});
});
console.log(array);//В этом месте проблема
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question