I am using Firebase SDKs in iOS app, I want to show db all nodes which I created in firebase db in application, is there any way to show database all nodes list to application user without hardcoding?
I tried below solution to print all data from main node, but couldn't
let ref:DatabaseReference = Database.database().reference()
ref.observe(.value) { snapshot in
print("DATA FETCH1: \(snapshot)")
}
let hand:DatabaseHandle
let refq:DatabaseReference = Database.database().reference()
hand = refq.observe(DataEventType.value, with: { (snapshot) in
let postDict = snapshot.value as? [String : AnyObject] ?? [:]
print("DATA FETCH2: \(postDict)")
})