skip to Main Content

Firebase – How to extract individual values from Firestore getDocument request using Swift

let db = Firestore.firestore() let docRef = db.collection("users").document(result!.user.uid) docRef.getDocument { (document, error) in if let document = document, document.exists { let dataDescription = document.data().map(String.init(describing:)) ?? "nil" print("Document data: (dataDescription)") print() } else { print("Document does not exist") } } print("Document…

VIEW QUESTION
Back To Top
Search