I have two collecitons: users and establishments, in the user collection i save the respective establishment id. I would like to know how to bring back the establishment data when i request the users.
Asked
Active
Viewed 164 times
1 Answers
0
Firestore operations always read data from a single collection. They have no concept like SQL's server-side JOIN. If you want to load the establishments, you will have to do so with an additional call, possibly a separate call for each of them.

Frank van Puffelen
- 565,676
- 79
- 828
- 807