Skip to content
Discussion options

You must be logged in to vote

Hi there!
We have a plugin for that! You can find it here: https://www.envelop.dev/plugins/use-graphql-modules

Basically, with GraphQL-Modules you need to manage the lifecycle of the context and session, and this plugin does that for you.

Regarding your solution, it seems fine for me, but I wonder why not using const { execute, contextFactory, schema } = getEnveloped({ req: requestContext.request.http }); ?
The graphql-modules plugin should set the schema internally, and make it available through getEnveloped

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Leestex
Comment options

@dotansimha
Comment options

Answer selected by n1ru4l
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