Replies: 2 comments
-
You would need to create a fresh instance of prisma client per each request, so that would has access to the graphql context. |
Beta Was this translation helpful? Give feedback.
0 replies
-
An example:
|
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
-
Is it possible? I've inspected the params passed to the query middleware and I didn't see that there is any route to the Apollo Server context. Is there a way to choose how the Prisma client is instantiated or called in the generated resolvers to pass request-level context through to a client extension?
Beta Was this translation helpful? Give feedback.
All reactions