github graphql-java-kickstart/graphql-java-tools 5.3.1

latest releases: v13.0.4, v13.1.1, v13.1.0...
5 years ago

Changed organization

Starting with this release the project has moved out of the graphql-java organization into graphql-java-kickstart. This because they are in fact separate projects where maintainers of the one actually weren't involved in maintenance of the other. This resulted in it becoming quite unclear what is actually graphql-java and what was a library on top. This confusion was clearly visible in the Gitter channel as well. That's why we split the projects and the Gitter channels.

Maven

<dependency>
    <groupId>com.graphql-java-kickstart</groupId>
    <artifactId>graphql-java-tools</artifactId>
    <version>5.3.1</version>
</dependency>

Gradle

compile 'com.graphql-java-kickstart:graphql-java-tools:5.3.1'

Support for generic types

Support for generics has been improved. This makes it easier to implement pagination for example. Instead of having to create concrete classes one could now do:

import graphql.relay.Connection
import graphql.relay.SimpleListConnection

@Component
class QueryResolver implements GraphQLQueryResolver {

    private UserService userService;

    Connection<User> users(int first, String after, DataFetchingEnvironment env) {
        return new SimpleListConnection<User>(userService.filter(page, size)).get(env);
    }
}

Updated graphql-java dependency

Updated to the latest 10.0 version of graphql-java.

Other fixes

https://github.com/graphql-java-kickstart/graphql-java-tools/issues?utf8=%E2%9C%93&q=milestone%3A5.3.1

Don't miss a new graphql-java-tools release

NewReleases is sending notifications on new releases.