Firestore: How to update specific field of document?

2502 views angular
-4

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

answered question

1 Answer

8

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?

JD

Please login first before posting an answer.