title: How do I get the value of a dynamic property from firebase
body: <p><a href="https://i.stack.imgur.com/Yd0MJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Yd0MJ.png" alt="FXTTC8* is the user ID/property"></a></p>
  
  <p>I'm building a chat app and I want to add a dynamic field of the user Id where I'll eventually set the user id with the timestamp.</p>
  
  <p>So [uid]: Date.Time</p>
  
  <p>Im not sure how to get this value from firebase.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>        qry.get()
          .then((data) =&gt; {
            data.forEach(snp =&gt; {
                this.travelBuddies.push({
                  id: snp.id,
                  likes: snp.data().likes,
                  userId: snp.data().userId,
                  unread: snp.data().unread,
                  [this.loggedInUser.uid]: snp.data().?
                });</code></pre>
  </div>
  </div>
  </p>
  
  <p>I just want to be able to sort by uid desc.  The last line "[this.loggedInUser.uid]: snp.data().?"  snp.data().name of the user id goes after the dot but I'm not sure how to do that.</p>