When using relational queries, can InferModel include relations? #754
Unanswered
danielsharvey
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using relational queries, with methods such as
findMany()
using thewith
clause, the type of the result is equivalent toInferModel<>
incorporating the included relations.e.g. from the docs:
Question: Is there a way to statically use
InferModel<>
to access types with relations included?Perhaps something like:
Beta Was this translation helpful? Give feedback.
All reactions