WaspW
Wasp12mo ago
JakeLoew

Accessing relation fields on logged in user

Say I have a User model that is defined with relation fields. For example a user can belong to many organizations. Is there a way to populate context.user with the related properties? Or do I need to query User with include every time I want to read the relation?

I was looking at the docs for accessing the logged in user and didn't find an answer to this specifically.

Wasp version ^0.15.0
Was this page helpful?