title: Get Data from Firebase Firestore in Cloud Function
body: <p>I am trying to get data from firestore in functions of firebase Node JS 8.</p>
  <p>I receive a QueryDocumentSnapshot which is totally fine but i cannot get data from this.</p>
  <p>I want androidNotificationToken but i get error undefined.</p>
  <p>I am tring this</p>
  <pre><code>    const missing_owner = snapshot.data().missing_owner;
  const found_owner = snapshot.data().found_owner;
  
  console.log(&quot;Missing Owner&quot;,missing_owner); //this is working
  
  
  const missRef = admin.firestore().collection(`users`).doc(`${missing_owner}`);
  const foundRef = admin.firestore().collection(`users`).doc(`${found_owner}`);
  
  const doc1 = await missRef.get();
  const doc2 = await foundRef.get();
  
  console.log(&quot;Data is &quot;,doc1); //this is also working
  
  
  const androidNotificationTokenMisser = doc1.data().androidNotificationToken; //cant get this 
  const androidNotificationTokenFounder = doc2.data().androidNotificationToken; // and this
  </code></pre>