Firestore Collection Group

In addition to being able to query Firestore collections and sub-collections, my company would like to be able to query Collection Groups.

An example use case schema in which we want to see all Users across all Organizations (ie, the Users Collection Group):

Organizations/<org_id>/Users

Currently we need two tables (Organizations, Users) with chained queries and we still only see Users in the context of their Organization.

2 Likes

Hey @kamillamagna, and welcome to the community! Just to make sure I’m understanding correctly, you’re referring to these? (released about a year ago) https://firebase.googleblog.com/2019/06/understanding-collection-group-queries.html

Yeah, I linked to that in my original request.

LOL I did not put 2+2 together there. I’ll share this with the team :slight_smile:

1 Like