<How to initialise a variable from firebase result...
# stackoverflow
u
How to initialise a variable from firebase result? I have my firestore data structure something like this. collection(users) -> document(userID) -> {groupID: "SomeID"} collection(groups) -> document(groupID) -> {group data} I want to get groupID from users and access my group data on Application startup I am unable to figure it out. I tried this in my DatabaseHelper class for Firestore. companion object { val selfID = FirebaseAuth.getInstance().currentUser!!.uid val groupID = groupID() fun groupID(): String { var...