I've got a little chat application and i just want to query who i'm chatting with.
I read the firestore docs at https://firebase.google.com/docs/firestore/query-data/queries
And there they show a few examples like:
let query = citiesRef.whereField("state", isEqualTo: "CA")
In my application my query is:
let query = model.defaultStore?.collection("users").document(myid).collection("chats").whereField("chatWith", isEqualTo: userII)
and i would like the id of the document that fulfils this query.
Just not sure how to get it.
Thanks.