I have Firebase generating random keys for my records in a Swift app. How do I go about retrieving that key if I want to change a specific record? In my example below, I\'m mark
Following Tim's answer for Swift 3 and Firebase 4 I had to use the below
for task in snapshot.children { guard let taskSnapshot = task as? DataSnapshot else { continue } let id = taskSnapshot.key