title: How to acess child nodes Firestore -- forEach function is not defined
body: <p>I'm trying to iterate over the nodes of a given collection in Firestore, but it does not seems to work. I'm new on Javascript so the data structure is not well clear to me.</p>
  
  <p>The following code was my attempt. I've failed because it appears an errors which tells me that the <code>forEach()</code> function is not defined. However, it does not make sense to me. <a href="https://firebase.google.com/docs/reference/js/firebase.firestore.CollectionReference.html" rel="nofollow noreferrer">This documentation</a> shows that the return of the get function is  <code>Promise&lt;QuerySnapshot&gt;</code>. On the sequence, <a href="https://firebase.google.com/docs/reference/js/firebase.firestore.QuerySnapshot.html" rel="nofollow noreferrer">this doc</a> shows the method of the QuerySnapshot objects and it appears the <code>forEach</code> method.</p>
  
  <pre><code> var myarray = firebase.firestore().collection('cards').get();  
   myarray.forEach( k =&gt; {
      console.log(k)
   });
  </code></pre>
  
  <p>I came here seeking for help. Could someone explains me why the forEach method does not exists for the given object and how can I iterate over the child nodes on the <code>cards</code> collection, so I could check their attributes? </p>