I want to use update () for firebase ref to update many children in one operation. To do this, I passed an object with the values ββthat need to be changed.
Here is the output of console.log (angular.toJson (change, 1))
{
"10": {
"otherRubies": 30
},
"11": {
"otherRubies": 30
}
}
In the beginning I have:
Then I do:
var refUsers = new Firebase(FBURL).child('users/');
refUsers.update(change);
So I want to have:

but instead I get:

Is there any way to do this?
source
share