Each user
in my users
collection has three fields: name
, age
and gender
.
I simply want to create a List
of all names (the names are String
s). How can I do this?
db.collection("phones").document(applicationID)
.collection("users")
.get()
.addOnSuccessListener { result ->
// something
val users: List<String> = result.document.data("name").values // this is obviously the wrong syntax
}