title: Get data from a collection with firestore ionic 4
body: <p>I would like to get unique data from doc from a collection with firebase firestore</p>
  
  <p>So i use to get all data: </p>
  
  <pre><code> ngOnInit() {
  
  return this.firestore.collection('users').snapshotChanges()
  
  
  
  .subscribe(data =&gt; {
  
  
    console.log(data);
    this.utilisateurs = data;
    console.log(this.passided);
  
  });
  
  
  }
  </code></pre>
  
  <p>and this to get unique id :</p>
  
  <pre><code>this.passided = this.navParams.get('id');
  </code></pre>
  
  <p>And i tried to do this :</p>
  
  <p>return <code>this.firestore.collection('users').doc(this.passided).snapshotChanges()</code></p>
  
  <p><a href="https://i.stack.imgur.com/eVdzY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eVdzY.png" alt="firestore"></a></p>
  
  <p>but don't work, can you help me please?</p>