Firestore: How to update specific field of document?

2502 views angular

How do I access and update a specific field in angular firestore: enter image description here

answered question

1 Answer


It should be pretty easy task. You can use update function and pass the field name and value to update.

ex :

this.db.doc(`options/${id}`).update({rating:$rating}); //<-- $rating is dynamic

posted this

Have an answer?


Please login first before posting an answer.