title: Angular2 - firebase returning denormalized query
body: <p>I am trying to write a query for a denormalized database, using the example from <a href="https://firebase.googleblog.com/2013/04/denormalizing-your-data-is-normal.html" rel="nofollow noreferrer">Firebase</a>, what I am trying to do is:</p>
  
  <p>get the list of forms under the current user
  for each item in this list return a reference to each item</p>
  
  <p>Here is my code:</p>
  
  <pre><code>  getFormList():firebase.database.Reference {
      // the old method
      //return firebase.database().ref('/formsByID').orderByChild('userList').startAt(this.userId).endAt(this.userId);
  
      var formRef = firebase.database().ref("/formsByID");
      var userRef = firebase.database().ref("/userProfiles");
  
      // this is our list of forms under the child node
      var userFormRef = userRef.child(this.userId).child("formsList");
  
      // when an item is added to our list of forms
      userFormRef.on("child_added", function(snap) {
        // snap.key is key of our form taken from forms list
        //let formKey = snap.key(): string;
        return formRef.child(snap.key);
      }); 
  
    }
  </code></pre>
  
  <p>The problem is that typescript is expecting a value to return from my getFormList method, but a value will only return when a new value is added to my userFormRef - any help appreciated</p>