title: Get only the current users data from firebase realtime database
body: <p>I would like to get data from my firebase realtime database, but I only want to get the data that includes the current users UID. </p>
  
  <p>See the image for the database structure:</p>
  
  <p><img src="https://i.stack.imgur.com/IZEl0.png" alt="picture of the db, explains the problem"></p>
  
  <p>I don't get the hang of firebase querying/sorting from the docs: <a href="https://firebase.google.com/docs/database/web/lists-of-data" rel="nofollow noreferrer">https://firebase.google.com/docs/database/web/lists-of-data</a></p>
  
  <pre><code>// Gets all chats
  return firebase.database().ref(`chat`);
  
  // would like to do something like this 
  let userId = firebase.auth().currentUser.uid
  firebase.database().ref('/chat/' + userId).once('value')
  </code></pre>
  
  <p>Would appreciate any help or tips for solving this. </p>