Upgrade to GraphQL Java pre-17 version
See gh-84
This commit is contained in:
@@ -42,7 +42,7 @@ configure(moduleProjects) {
|
||||
mavenBom "org.junit:junit-bom:5.7.2"
|
||||
}
|
||||
dependencies {
|
||||
dependency 'com.graphql-java:graphql-java:16.2'
|
||||
dependency 'com.graphql-java:graphql-java:0.0.0-2021-07-06T01-36-09-02444b78'
|
||||
dependency 'org.assertj:assertj-core:3.19.0'
|
||||
dependencySet(group: 'org.apache.logging.log4j', version: '2.14.1') {
|
||||
entry 'log4j-api'
|
||||
|
||||
@@ -24,7 +24,7 @@ dependencyManagement {
|
||||
|
||||
dependencies {
|
||||
api project(':spring-graphql')
|
||||
api 'com.graphql-java:graphql-java:16.2'
|
||||
api 'com.graphql-java:graphql-java:0.0.0-2021-07-06T01-36-09-02444b78'
|
||||
api 'io.projectreactor:reactor-core'
|
||||
api 'org.springframework:spring-context'
|
||||
api 'org.springframework.boot:spring-boot-starter'
|
||||
|
||||
@@ -55,7 +55,7 @@ public abstract class ReactorContextManager {
|
||||
* @param input the GraphQL query input
|
||||
*/
|
||||
static void setReactorContext(ContextView contextView, ExecutionInput input) {
|
||||
((GraphQLContext) input.getContext()).put(CONTEXT_VIEW_KEY, contextView);
|
||||
input.getGraphQLContext().put(CONTEXT_VIEW_KEY, contextView);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -64,7 +64,7 @@ public abstract class ReactorContextManager {
|
||||
* @return the reactor {@link ContextView}
|
||||
*/
|
||||
static ContextView getReactorContext(DataFetchingEnvironment environment) {
|
||||
GraphQLContext graphQlContext = environment.getContext();
|
||||
GraphQLContext graphQlContext = environment.getGraphQlContext();
|
||||
return graphQlContext.getOrDefault(CONTEXT_VIEW_KEY, Context.empty());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user