title: Cloud Firestore and Ionic
body: <p>How can I get the document id of a collection present in the cloud Firestore?</p>
  
  <p>I tried to get it by using the </p>
  
  <pre><code>firebase.firestore().collection("collectionName").doc().id
  </code></pre>
  
  <p>but I didn't get the appropriate result.</p>