Hello,
I'm building a social network, which has a data scheme named "post". Each post has an id (post_id), and a list of users who liked the post. Each user has a profile image. So in total, the references look like this:
post -> list<user> -> profile_image
Given a post, how can I create a carousel of images from its users?
In other words, how can I display the profile image of each user that belongs to a specific post?
Also, I tried checking the docs but couldn't find much information about how document references work in the settings of widgets and queries. For example, I know there's a convenient way to create a subcollection of "post" and present all the images of the subcollections in a carousel. But this isn't perfect for me, because not all users create posts. Is it also possible to do it with the document references "post" pointing to instead of sub-collections?