title: How can I find a match of multiple children in firebase?
body: <p>I tried to find a way to retrieve specific sets of child(s) from a firebase database node, but from what I found out it can't be done based on my research and answer to this question. <a href="https://stackoverflow.com/questions/45332747/how-do-i-retrieve-specific-childs-from-a-firebase-database-node-instead-of-the/45332800?noredirect=1#comment77628116_45332800">How do I retrieve specific child(s) from a firebase database node instead of the snapshot of everything in the node?</a></p>
  
  <p>I think a workaround for this could be if I reference each alerted ID in the array and then obtain their snapshots consecutively. Hence, I have this file reader that obtains ID values from a CSV file and separate them and then alert each ID value. </p>
  
  <pre><code>  var reader = new FileReader();
    reader.onload = function () {
  
    var trnsarray = reader.result.split(/\s+/).splice(1).join(', ');
  
    var newarray = trnsarray.split(',').map(parseFloat);
  
    for (var i=0; i &lt; newarray.length; i++) {
  
      alert(newarray[i]);
  
    }
  </code></pre>
  
  <p>Instead alerting each ID I want it to get a snapshot of each ID in <code>newarray</code>. I tried the function below but it does not read the ID at all.</p>
  
  <pre><code> var dbRef = firebase.database().ref().child('Node').(newarray[i]);
   dbRef.on('value', snapshot =&gt; {
      console.log(snapshot)
    }
  </code></pre>
  
  <p>How can I obtain a snapshot value of each ID in <code>newarray</code> consecutively? How can this be implemented?</p>