var documentId : String?
self.firestore.collection("users").document("samplesample")
.getDocuments() { (querySnapshot, err) in
if let err = err {
print("Error getting documents: \(err)")
} else {
for document in querySnapshot!.documents {
self.documentId = document.documentID
}
}
}
Recommended Posts