Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to join collection in firestore

I have to fetch job list with user detail who posted the job. How can I achieve this task in firestore. As there is no option to joining collections.

like image 540
Amit Sinha Avatar asked Dec 03 '25 20:12

Amit Sinha


2 Answers

There is no way to join collection in firestore. So, I used the associated field to get the data from other collection.

like image 99
Amit Sinha Avatar answered Dec 05 '25 11:12

Amit Sinha


you can write cloud functions to join collections on the server side, or you can use rxjs operators to do it on the client side, sorry but cloud firestore still on a beta version so there is some query limations

like image 44
Yassine Karkafi Avatar answered Dec 05 '25 12:12

Yassine Karkafi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!