How To Update() An Array Of Maps-objects On Firestore In Angular Or Angularfirestore?
I know how to READ and WRITE a document in Firestore, But how does one update() a Value of and object in an array of Maps without removing/deleteing? Just changing one value if nee
Solution 1:
There is no way to change a value in an array. You'll either have to remove the old combination of values and add the new combination, or have to:
- Read the document.
- Get the entire array from that document.
- Modify the array in your application code.
- Write the modified array back to the database in its entirety.
Post a Comment for "How To Update() An Array Of Maps-objects On Firestore In Angular Or Angularfirestore?"