I have this following method which i use when saving a new data
public void registerNewUser(FirebaseUser id, String name, String email, int count) { User user = new User(name, email, count); DatabaseReference ref = FirebaseDatabase.getInstance() .getReference(); ref.child("path") .child(id.getUid()).setValue(user); } I like to add a new data in the same child/folder when the user is done registering, this is what i have done so far.
DatabaseReference ref = FirebaseDatabase.getInstance() .getReference(); ref.child("path") .child(id.getUid()).setValue("THE NEW DATA"); But the problem is it clears and overwrite the old data. Is there any efficient way to do this?
