title: How can I get specific document data from firestore querysnapshot?
body: <p>I got a querysnapshot in a function.
  And want to bring the whole querysnapshot to another function (functionTwo).
  In functionTwo, I want to get a specific document in the querysnapshot <strong>WITHOUT</strong> forEach. The specific doc can be changed by different cases.</p>
  <pre><code>ref_serial_setting.get()
      .then(querysnapshot =&gt; {
        return functionTwo(querysnapshot)
      })
      .catch(err =&gt; {
        console.log('Error getting documents', err)
      })
  
  
  let functionTwo = (querysnapshot) =&gt; {
    // getting value
  
    const dataKey_1 = &quot;dataKey_1&quot;
  
    // Tried 1
    const value = querysnapshot.doc(dataKey_1).data()
  
    // Tried 2
    const value = querysnapshot.document(dataKey_1).data()
  
    // Tried 3 (Put 'data_name': dataKey_1 in that doc)
    const value = querysnapshot.where('data_name', '==', dataKey_1).data()
  }
  </code></pre>
  <p>The result are all these trying are not a function.</p>
  <p>How can I get specific document data from querysnapshot??</p>
  <p>or</p>
  <p>Is there any easy method to change the querysnapshot to JSON?</p>