0

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.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
Tiago Palmas
  • 325
  • 1
  • 5
  • 13

1 Answers1

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