It is difficult to say from your question what exactly you are doing, but does this make you the list that you need?
databaseRef.child("Active_Orders").observeEventOfType(.Value, withBlock: { (snapshot) in if let result = snapshot.children.allObjects as? [FIRDataSnapshot] { for child in result { var orderID = child.key as! String print(orderID) } } })
I believe that this block should iterate over all child elements inside "Active_Orders" and print out their key value (which is similar to what you are trying to print).
source share