0

I'm trying to get the child of a child in firebase and retrieve information from it. But I can't just add .child() without any arguments inside as this gives an error.

Firebase

Firebase 2

I'm trying to retrieve the "present" but there will be a different child (Dates) where I will have to retrieve that.

I tried something like

        Database.database().reference().child("Attendance").child("Checkin").observeSingleEvent(of: .value) { (snapshot) in
            print (snapshot)


        }

but that would print everything under the "Checkin".

As mentioned above I just need to retrieve the present from different dates (Child) if that makes sense. I'm still new to swift and firebase so any help will be greatly appreciated

Gastón Saillén
  • 12,319
  • 5
  • 67
  • 77

0 Answers0