title: Firebase Firestore get() async/await
body: <p>can anyone help me to "translate" this example in Typescript with async/await </p>
  
  <pre><code>console.log("start") 
  var citiesRef = db.collection('cities');
  var allCities = citiesRef.get()
      .then(snapshot =&gt; {
          snapshot.forEach(doc =&gt; {
              console.log(doc.id, '=&gt;', doc.data().name);
          });
          console.log("end")
      })
      .catch(err =&gt; {
          console.log('Error getting documents', err);
      });
  </code></pre>
  
  <p>I tested some code but i think i do something wrong with the 'forEach' loop. </p>
  
  <p>The result i want in console:</p>
  
  <pre><code>start
  Key1 =&gt; city1
  Key2 =&gt; city2
  end
  </code></pre>
  
  <p>Result i get in some of my tests:</p>
  
  <pre><code>start
  end
  Key1 =&gt; city1
  Key2 =&gt; city2
  </code></pre>
  
  <p>Thx in advance</p>