title: How to snapshot particular field angularfirestore2
body: <p>I want to access particular field and get that field instead of whole data using angularfirestore2 snapshot or value changes</p>
  
  <p>Here is the code</p>
  
  <pre><code>return this.angFirestore.collection(key).doc(id).snapshotChanges().map(data  {
         return data.map(d =&gt; {
           const id = d.payload.doc.id;
           return id;
         })
       })
  </code></pre>
  
  <p>I want this type of data <code>data = {id:1,like:3}</code> instead of<code>id:1,like:3,x:1, y:2....</code></p>