My firestore structure is like this:
and I'm trying to make a query that returns just the documents inside fantasy-years
(so just 2021, 2022) without returning any of the subcollections. But if I have a query like
return db.collection('fantasy-years').get()
.then(result => result.docs)
then I get an empty array, but if I add another document without any subcollections, it will return that entry.
Is there a way I can get it to return those that do have subcollections (but not fetch the subcollection)?