'Update an already existing element in Firebase [duplicate]

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?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source