Lost the typing of context going from nexus/@schema to framework #1386
Unanswered
assertnotnull
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Not sure if I should create this as an issue already but we just switched from nexus/@Schema to the framework and I couldn't find in the API any options to set the type of the context.
In a short version preivously:
It helps to get validation when calling prisma again in a resolve.
My only solution right now is to type all the
ctx
as NexusContext.I am also wondering why it isn't typed as that by default.
Beta Was this translation helpful? Give feedback.
All reactions