Is there a way to query for all documents containing a specific subcollection (or alternatively any subcollection at all) in a single query?
This answer: Is possible to check if a collection or sub collection exists? suggests using the document length. Is it possible to do this check within a single query?
Ideally something like this would be possible:
db.collection("stuff")
.whereEqualTo("fu", true)
.containing("subcollection");
Context: I am using a FirestoreRecyclerAdapter to populate a RecyclerView with this query. That's why I can't to the filtering locally. I am aware that introducing an indicator field in the document would solve the problem, but would ideally like to avoid this.