title: how to update field on document on cloud firestore using Flutter?
body: <p>I tried to update my firestore database field.</p>
  
  <pre><code>  Future&lt;void&gt; approveJob(String categoryId) {
  </code></pre>
  
  <p><strong>comment line is updated on database. But I hard code uid. Is it possible to get uid without store?</strong></p>
  
  <pre><code>   //return _db.collection('jobs').document('25FgSmfySbhEPe1z539T').updateData({'isApproved':true});
  
  
     return _db
          .collection('jobs')
          .where("categoryId", isEqualTo: categoryId)
          .getDocuments()
          .then((v) {
            try{
              v.documents[0].data.update('isApproved', (bool) =&gt; true,ifAbsent: ()=&gt;true);
  
  // No Errors. But not updating
  
           }catch(e){
              print(e);
            }
      });
    }
  </code></pre>