title: Querying all parents and their children Firebase
body: <p>I'm basically trying to list userIDs 1 at a time and also their children elements (firstname, last name, email , picture) so basically i want userid--> firstname,lastname,emailpicture looped for every user . this seems very difficult to do in firebase. </p>
  
  <p>layout of firebase ( i cannot change this ) : <a href="https://i.imgur.com/mJ5whBC.jpg" rel="nofollow noreferrer">https://i.imgur.com/mJ5whBC.jpg</a></p>
  
  <p>I'm not understanding how to grab all of the parents dynamically since they have randomly generated id's. i can do it one by one but i need to do it dynamically every time a user is added. Below is an example of what i want to do for each , but im manually inputting the ID so its pretty irrelevant. </p>
  
  <pre><code>var database = firebase.database();
  
  database.ref().once('value', function (data) {
  picture = data.child("4320552453").child('picture').val();
  firstName = data.child("4320552453").child('firstname').val();
  lastName = data.child("4320552453").child('lastname').val();
  email = data.child("4320552453").child('email').val();
  
  $('#image').html('&lt;img src="' + picture + '"&gt;')
  $('#image').append(firstName)
  $('#image').append(lastName)
  $('#image').append(email)
  </code></pre>
  
  <pre><code>my end goal is something like
  div 1 userid 1 -&gt; all information1 for each user
  div 2 userid 2 -&gt; all information  for each user
  div 3 userid  3-&gt; all information  for each user
  </code></pre>