Skip to content

Prisma In Context Yoga Graphql #1386

Answered by hayes
enri90 asked this question in Q&A
Mar 5, 2025 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

There aren't any real issues with using it in context, other than some users experienced slow auto-completes in their editors. You can add it to the context and see how it works. The issue would only come up if you also add the types to the Context type in your builder.

I'm not super familiar with cloudflair so I'm not sure how Prisma works there. I think you need a per request client, which is easiest to do through context, but that isn't a hard requirement.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hayes
Comment options

hayes Mar 6, 2025
Maintainer

Answer selected by enri90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants