Skip to content

Commit d1fc9a6

Browse files
committed
Updating to use latest graphql-java:15 library
1 parent ddb218e commit d1fc9a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ gradle.projectsEvaluated {
5656

5757
dependencies {
5858
compile 'javax.validation:validation-api:1.1.0.Final'
59-
compile 'com.graphql-java:graphql-java:14.0'
59+
compile 'com.graphql-java:graphql-java:15.0'
6060

6161
// OSGi
6262
compileOnly 'org.osgi:org.osgi.core:6.0.0'

src/main/java/graphql/annotations/strategies/EnhancedExecutionStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected FieldValueInfo completeValue(ExecutionContext executionContext, Execut
7373
graphql.schema.GraphQLType fieldType = parameters.getExecutionStepInfo().getType();
7474
Object result = parameters.getSource();
7575
if (result instanceof Enum && fieldType instanceof GraphQLEnumType) {
76-
Object value = ((GraphQLEnumType) fieldType).getCoercing().parseValue(((Enum) result).name());
76+
Object value = ((GraphQLEnumType) fieldType).parseValue(((Enum) result).name());
7777
return super.completeValue(executionContext, withSource(parameters, value));
7878
}
7979
if (result instanceof Optional) {

0 commit comments

Comments
 (0)