Hi everyone
,
I’m building a social app and running into multiple issues (comments not saving/showing, messages not sending, profile data empty, search not working).
I think the root cause is that my User ↔ UserProfile link isn’t set up properly.
Setup:
-
Userhas a field →profile (UserProfile) -
UserProfilehas a field →user (User) -
Posts/Comments/Messages all reference
UserProfile.
When I try to use Current User's profile, it often returns null, which breaks comments, messages, and profile pages.
What’s the correct way to set up the signup workflow so every User always has a linked UserProfile?
Thanks a lot ![]()