Strongly typed with
for InferSelectModel
#1299
Unanswered
bruceharrison1984
asked this question in
Q&A
Replies: 1 comment
-
Check this question here |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Is there any way to pass the
with
properties along with the type information? UsingInferSelectModel
does not include relationship properties, so the results of a query with be strongly typed within the local context, but passing the results into another method becomes difficult because the child record types(and properties) are lost.Local context works as expected
Writing a method that takes in the result means I lose child record props and types
I've tried playing around with the type system, but I can't seem to find a combination that satisfies the constraints without throwing linter errors.
Beta Was this translation helpful? Give feedback.
All reactions