Introduction
Sometimes you want to find documents that are inside many different folders with the same name in your database. Collection group queries let you search all those folders at once, so you don't have to look in each one separately.
When you have user comments stored in many different posts and want to find all comments by a specific user.
When you want to get all orders from all customers, but orders are stored inside each customer's folder.
When you need to find all messages sent by a user across different chat rooms.
When you want to count all tasks assigned to a person, but tasks are inside different project folders.
When you want to search for all reviews of a product, but reviews are stored under different categories.