gegiG
Convex Community9mo ago
3 replies
gegi

get user data

Hello,

I'm looking for best practice and hopefully someone can help me here.

I'm fetching my comments and I want to display the user information of it. In my comments scheme I added only the userId. So my ideas to solve it are:
1. Instead adding only the user id, I add the whole user info I need to the getComments convex function
2. I fetch the user info through the id on the client.

Appreciate any help
Was this page helpful?