I currently have a firestore schema that looks like so:
Threads (threadid)
Users (userid)
admin
title
What I would like to do is perform a query that returns all the thread documents where the subcollection document of a user id exists. I have seen collection groups however I am confused as to how to use that to query the existence of a document rather than a property of a document. I also have a root collection named "Users" as well as a subcollection and it is unclear to me how to differentiate between them.