title: NodeJS, Firestore get field
body: <p><a href="https://i.stack.imgur.com/luXsq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/luXsq.png" alt="enter image description here"></a></p>
  
  <p>I have firestore set up on my nodejs chatbot.
  And its successfully copying the Facebook users ID to .doc Name,
  and setting there username and other info under there user ID in firestore</p>
  
  <p>How do i go about retrieving this "field"   name
  to display back to user.</p>
  
  <p>what i have so far is this</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code> const givename = db.collection('users').doc(''+ sender_id).get("name");  
   
   </code></pre>
  </div>
  </div>
  </p>
  
  <p>How ever firebase is returning nothing.</p>
  
  <p>Iv looked alot online on how to return a field. but with little luck.
  Any suggestions?</p>