Upgrade to GraphQL Java pre-17 version

See gh-84
This commit is contained in:
Rossen Stoyanchev
2021-07-08 21:24:18 +01:00
parent 9073d0d7ce
commit 706766536d
3 changed files with 4 additions and 4 deletions

View File

@@ -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'

View File

@@ -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'

View File

@@ -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());
}