Skip to content

Commit cea4114

Browse files
authored
Merge pull request #399 from bgoodin/master
bug fix 393
2 parents b6e0520 + 36282c4 commit cea4114

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphql-java-kickstart/src/main/java/graphql/kickstart/execution/input/GraphQLSingleInvocationInput.java

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import graphql.kickstart.execution.GraphQLRequest;
88
import graphql.kickstart.execution.context.GraphQLContext;
99
import graphql.schema.GraphQLSchema;
10+
import java.util.Collections;
1011
import java.util.List;
1112
import java.util.Optional;
1213
import javax.security.auth.Subject;
@@ -43,6 +44,7 @@ private ExecutionInput createExecutionInput(
4344
.query(graphQLRequest.getQuery())
4445
.operationName(graphQLRequest.getOperationName())
4546
.context(context)
47+
.graphQLContext(Collections.singletonMap(context.getClass(), context))
4648
.root(root)
4749
.variables(graphQLRequest.getVariables())
4850
.extensions(graphQLRequest.getExtensions())

0 commit comments

Comments
 (0)