Skip to content

Commit 3e563bc

Browse files
authored
Merge pull request #260 from setchy/feature/259-graphql-java-15-support
Updating to use latest graphql-java:15 library
2 parents 427478c + d1fc9a6 commit 3e563bc

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ If you would like to use a tool that creates a graphql spring boot server using
3737

3838
```groovy
3939
dependencies {
40-
compile "io.github.graphql-java:graphql-java-annotations:8.0"
40+
compile "io.github.graphql-java:graphql-java-annotations:8.1"
4141
}
4242
```
4343

@@ -47,7 +47,7 @@ dependencies {
4747
<dependency>
4848
<groupId>io.github.graphql-java</groupId>
4949
<artifactId>graphql-java-annotations</artifactId>
50-
<version>8.0</version>
50+
<version>8.1</version>
5151
</dependency>
5252
```
5353

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'

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ org.gradle.daemon=true
55
org.gradle.parallel=true
66
org.gradle.jvmargs=-Dfile.encoding=UTF-8
77

8-
version = 8.0
8+
version = 8.1

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)