I'm still trying to wrap my head around subcollections and why I would use these instead of just an ID on documents for the category.
For example the docs talk about chat rooms.
As subcollections you could have:
/rooms/roomA/messages
But you could also just have
/rooms
and each messsage would have a room_id of 'a'.
Seems like the same functionality would be supported. Just instead of using the path you would use the room_id
The only advantage listed that I can really see is:
"Advantages: As your lists grow, the size of the parent document doesn't change. You also get full query capabilities on subcollections."
... but why would that matter ? They're not materialized views right? Since I can't just drop the whole subcollection and there wouldn't be a performance increase.
I think I would prefer everything flat if there's no major advantage.
I mean I guess from an API perspective it's kind of cool that cloud storage and firestore would use the same path. But that's mostly semantic.