June 2018
Beginner to intermediate
394 pages
9h 2m
English
To update data, we can use the setValue() method by passing updated values. You can likewise utilize updateChildren() by passing the way to update data without exasperating other child nodes:
String newEmail = "ashokslsk@gmail.com";mDbRef.child(userId).child("email").setValue(newEmail);
The following screenshot illustrates the updated value for the email field:

Read now
Unlock full access