SandyS
Convex Community2y ago
33 replies
Sandy

Best practices for getting liked posts

I'm buiding an app with users and posts. Users are able to like and save posts. Based on the posts a user has liked or saved already, I want to display either a filled-in icon or a hollow icon in that post's like and save buttons. I'm wondering what would be the best way to structure the schema and create queries to make this feature easiest to implement.

Here is my current schema

Any advice would be hugely appreciated!
image.png
Was this page helpful?