Last active
September 3, 2024 14:28
-
-
Save yccheok/3010b4fa555274249f631b7f33a4aa87 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static func generateDocId() -> String { | |
let db = Firestore.firestore() | |
// Any collection name will do. This function is not supposed to perform any read/write | |
// operations on Firestore. | |
return db.collection("sandbox").document().documentID | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment