Hello again, quick question, how can I get the var...
# orm-help
j
Hello again, quick question, how can I get the variation of typings for a particular model? Lets say I’ve got a
User
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 ?