0

I have a Node.js and Firebase project.

How can I update a field in an array which already exists?

Seems out that Firebase has only two array operations - arrayUnion and arrayRemove.

enter image description here

Say I have to update currency in BRSR. How do I do that?

Doug Stevenson
  • 268,359
  • 30
  • 341
  • 380
vaibhav deep
  • 403
  • 4
  • 14
  • You will have to read the document, make changes to the array in memory, then write the document back to its original location. – Doug Stevenson May 13 '22 at 05:01

0 Answers0