My DB looks like this :
In my app, I have a search bar, at the time the user search I want to find all the users with the same name or starting with the same text.
So what I did was :
func seachUser(named : String){
    usersRef.queryOrdered(byChild: "userName")
    .queryStarting(atValue: named)
    .observeSingleEvent(of: .value) { (snap) in
                print(snap.value)
    }
}
But, each time I get all the list of the users. How can I fix it? thanks
