My UI needs to support the following functionality:
- Users can follow other users
- A user can like a post
- A user needs to see on ONE page all posts that any of the users they follow (and/or themselves) have liked, including who, how many, etc
Users will be accessing this data and liking frequently so the implementation should ideally minimize the amount of writes & reads needed whenever a user views posts or likes a post.
What would be the best way to structure my Firestore database to support this functionality?
Note: I understand that a relational DB would be better suited for this, but I am trying to stick with Firebase to reduce the amount of code I need to support/develop.