Skip to content

graphql.kickstart.servlet.context.DefaultGraphQLServletContext cannot be cast to class GraphqlCustomContext #370

Answered by oliemansm
rituja99 asked this question in Q&A
Discussion options

You must be logged in to vote

You need to provide a custom context builder if you want to be able to use a custom context. See this sample how you can provide a custom context builder: https://github.com/graphql-java-kickstart/samples/blob/master/request-scoped-dataloader/src/main/java/graphql/servlet/examples/dataloader/requestscope/CustomGraphQLContextBuilder.java.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by oliemansm
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
Converted from issue

This discussion was converted from issue #351 on August 19, 2021 07:54.