jasci
06/28/2021, 10:06 AMUser
model with a relation field posts
When I annotate some variable as User type it doesn’t expect to include posts, cause it’s a relation. How can I specify that it’s a User type that includes posts. Or maybe I can annotate even more like it’s a User type with only name and posts (as if I used include posts and select name)
I see that when I use select
or include
it properly resolves types. How can I manually do it ?Ryan
06/28/2021, 10:08 AM