how to update realtime database in firebase code example
Example 1: javascript write to firebase
function writeUserData(userId, name, email, imageUrl) {
firebase.database().ref('users/' + userId).set({
username: name,
email: email,
profile_picture : imageUrl
});
}
Example 2: firebase update data
await firebase.database().ref().update(updates);