How can I retrieve a result from the data where toid is equal to "-LzC6VYgURUZMHy_waYx"
i used this func but it return nil
func getpagechat(toid:String){
let mydatabase = FIRDatabase.database().reference().child("message")
let query = mydatabase.queryOrdered(byChild: "toid").queryEqual(toValue: toid)
query.observeSingleEvent(of: .value) { (snapshot) in
print(snapshot)
}
}
my database