How do you perform cheap joins with Firestore?
In Firebase, I would .map() the response and get the additional data based on a foreign key stored on each item. However, considering the pricing model of Firestore where you pay per reads, this appears to be too expensive. What do you think?
In my case, my relationship is many actions to a handful of categories (circa 5 - 7). Each action belongs to one category.
What would be the best practice for this case? Should I keep doing it like in Firebase? Or should I fetch both collections independently and join them in Javascript?
Jakub
PS How do you actually work with the reference data type? It is unfortunately not described in the documentation.