From dcb72342adc293ea307ef4bfab9c7c58f247a802 Mon Sep 17 00:00:00 2001 From: Ragnar Rova Date: Mon, 17 Jun 2019 22:05:49 +0200 Subject: [PATCH] Upgrade graphql-java to 13.0 --- pom.xml | 2 +- src/main/kotlin/com/coxautodev/graphql/tools/SchemaParser.kt | 2 +- .../coxautodev/graphql/tools/relay/RelayConnectionFactory.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 80bd306c..2adc31bb 100644 --- a/pom.xml +++ b/pom.xml @@ -48,7 +48,7 @@ com.graphql-java graphql-java - 12.0 + 13.0 com.fasterxml diff --git a/src/main/kotlin/com/coxautodev/graphql/tools/SchemaParser.kt b/src/main/kotlin/com/coxautodev/graphql/tools/SchemaParser.kt index 529ea877..6f2053d0 100644 --- a/src/main/kotlin/com/coxautodev/graphql/tools/SchemaParser.kt +++ b/src/main/kotlin/com/coxautodev/graphql/tools/SchemaParser.kt @@ -184,7 +184,7 @@ class SchemaParser internal constructor(scanResult: ScannedSchemaObjects, privat for (directive in directives) { if (!names.contains(directive.name)) { names.add(directive.name) - output.add(schemaGeneratorHelper.buildDirective(directive, directiveDefinitions, directiveLocation)) + output.add(schemaGeneratorHelper.buildDirective(directive, directiveDefinitions, directiveLocation, runtimeWiring.comparatorRegistry)) } } return output.toTypedArray() diff --git a/src/main/kotlin/com/coxautodev/graphql/tools/relay/RelayConnectionFactory.kt b/src/main/kotlin/com/coxautodev/graphql/tools/relay/RelayConnectionFactory.kt index ba2ed72e..6eb7fb83 100644 --- a/src/main/kotlin/com/coxautodev/graphql/tools/relay/RelayConnectionFactory.kt +++ b/src/main/kotlin/com/coxautodev/graphql/tools/relay/RelayConnectionFactory.kt @@ -88,7 +88,7 @@ class RelayConnectionFactory : TypeDefinitionFactory { return this.directives.map { it.withField(this) } } - class DirectiveWithField(val field: FieldDefinition, name: String, arguments: List, sourceLocation: SourceLocation, comments: List) : Directive(name, arguments, sourceLocation, comments, IgnoredChars.EMPTY) { + class DirectiveWithField(val field: FieldDefinition, name: String, arguments: List, sourceLocation: SourceLocation, comments: List) : Directive(name, arguments, sourceLocation, comments, IgnoredChars.EMPTY, emptyMap()) { fun getTypeName(): String { val type = field.type if (type is NonNullType) {