There is a user collection, there is a uid attribute and a uid list follower list. There is a post collection. There is an id unique and uid attribute that equalt to user uid who created post.How can I do that the user I want to see only the posts of the person they follow?
2
Answers
You can use the ‘in’ operator to retrieve posts whose creator is included in the list of followed users.
you can store the uids of the persons he follows in his doc and then show the posts accordingly to these uids.