Skip to content Skip to sidebar Skip to footer

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:

  1. Read the document.
  2. Get the entire array from that document.
  3. Modify the array in your application code.
  4. 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?"