Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter firestore update a particular document field

FirebaseFirestore.instance.collection('collection_name').doc('document_id').update({'field_name': 'Some new data'});

https://stackoverflow.com/questions/58383016/how-to-update-field-on-document-on-cloud-firestore-using-flutter
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flutter #firestore #update #document #field
ADD COMMENT
Topic
Name
8+7 =