5.2
Directives
Support for directives has been included now. See https://www.graphql-java-kickstart.com/spring-boot/directives/ for more details and basic usage.
Type Definition Factory
Added the type definition factory to make it possible to dynamically add type definitions after the SDL has been parsed. This is used to automatically generate Relay connection type definitions. See https://www.graphql-java-kickstart.com/spring-boot/type-definition-factory/ for more details.
Automatic generation of Relay Type Definitions
Relay Type Definitions can now be automatically generated using the @connection
directive. See https://www.graphql-java-kickstart.com/tools/relay/ for more details and basic usage.
Renamed properties
Several properties have been renamed to be in line with Spring Boot standard:
graphql.tools.introspectionEnabled
to graphql.tools.introspection-enabled
graphql.tools.schemaLocationPattern
to graphql.tools.schema-location-pattern
GraphQL Tools Kotlin version
If you're using graphl-java-tools
you need to set the kotlin.version
in your Spring Boot project explicitly to version 1.3.10, because Spring Boot Starter parent currently overrides it with a 1.2.* version of Kotlin. graphql-java-tools
requires 1.3.* however because of its coroutine support.
Spring Boot team has indicated the Kotlin version will be upgraded to 1.3 in Spring Boot 2.2.
Using Gradle
Set the Kotlin version in your gradle.properties
kotlin.version=1.3.10
Using Maven
Set the Kotlin version in your <properties>
section
<properties>
<kotlin.version>1.3.10</kotlin.version>
</properties>