Hello guys, i need some help to validate my workflow with firestore 🙂
My feature is about allowing a user to add movies/tvshow to a favorite list.
For that, i designed this structure on firestore (Structure in Copy)
So, each user can create a favorite collection, and each favorite document adds an attribute media which is a DocumentRef inside the medias collection.
I’m using TMDB API to retrieve all media information, and for the favorite feature, i need to store snapshots of each media and each language that my app supports.
The advantage of this structure is that the media data is not duplicated across all users.
On the code side, I am retrieving all this data with the following code (Code in Copy)
I need to understand if i’m on the right way to achieve this (structure + code) for best perfomances 🙂
Thanks