I am trying to check were the users already exists with the same username here is example
Here is my code,
DatabaseReference reference = FirebaseDatabase.getInstance().getReference("Users");
Query checkUser = reference.orderByChild("userName").equalTo(userEnteredUserName);
but without the uid it works perfect, but whenever there is uid unable to check the username, Is there is anyway to check username
