There is an object in which users are in the form of an array, how to update a user with a specific id, without sending the entire array of users.
const users = firebase.ref().child('users');
users.set(usersArray);
// data is stored in this form
{
users: [
{
id: userId,
...
},
{
id: userId,
...
}
]
...
}
when simultaneously updating the data of different users, the sent data is overwritten, but it is necessary that it is not overwritten