Introduction
Sometimes you want to organize your data in groups inside other groups. Subcollections let you keep related data inside a main group, like folders inside folders. This helps keep your data neat and easy to find.
When you want to store comments inside a specific blog post document.
When you need to keep user orders inside each userβs profile document.
When you want to group messages inside a chat room document.
When you want to separate settings for each project inside the project document.
When you want to keep logs or history inside a main record without mixing with other data.