diff --git a/README.md b/README.md index b7bf1c25..0dc6c7c2 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ If you would like to use a tool that creates a graphql spring boot server using ```groovy dependencies { - compile "io.github.graphql-java:graphql-java-annotations:8.1" + compile "io.github.graphql-java:graphql-java-annotations:8.2" } ``` @@ -47,7 +47,7 @@ dependencies { io.github.graphql-java graphql-java-annotations - 8.1 + 8.2 ``` diff --git a/build.gradle b/build.gradle index 580bde5d..77d20eba 100644 --- a/build.gradle +++ b/build.gradle @@ -56,7 +56,7 @@ gradle.projectsEvaluated { dependencies { compile 'javax.validation:validation-api:1.1.0.Final' - compile 'com.graphql-java:graphql-java:14.0' + compile 'com.graphql-java:graphql-java:15.0' // OSGi compileOnly 'org.osgi:org.osgi.core:6.0.0' diff --git a/gradle.properties b/gradle.properties index 4ce8d4f0..0671aa39 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,4 +5,4 @@ org.gradle.daemon=true org.gradle.parallel=true org.gradle.jvmargs=-Dfile.encoding=UTF-8 -version = 8.1 +version = 8.2 diff --git a/src/main/java/graphql/annotations/strategies/EnhancedExecutionStrategy.java b/src/main/java/graphql/annotations/strategies/EnhancedExecutionStrategy.java index dc1c63d1..66b86f80 100644 --- a/src/main/java/graphql/annotations/strategies/EnhancedExecutionStrategy.java +++ b/src/main/java/graphql/annotations/strategies/EnhancedExecutionStrategy.java @@ -73,7 +73,7 @@ protected FieldValueInfo completeValue(ExecutionContext executionContext, Execut graphql.schema.GraphQLType fieldType = parameters.getExecutionStepInfo().getType(); Object result = parameters.getSource(); if (result instanceof Enum && fieldType instanceof GraphQLEnumType) { - Object value = ((GraphQLEnumType) fieldType).getCoercing().parseValue(((Enum) result).name()); + Object value = ((GraphQLEnumType) fieldType).parseValue(((Enum) result).name()); return super.completeValue(executionContext, withSource(parameters, value)); } if (result instanceof Optional) {