Is there any way to retrieve all the keys in a child, put them into array, and then retrieve the values for the keys and put it into another array?
Source code:
self.ref?.child("data").child("success").child(userID!).observeSingleEvent(of: .value, with: { (snapshot) in
if snapshot != nil {
// Your answer goes here
}
}
