Graphql-compose provides a convenient way to create GraphQL Schema. This schema is completely compatible with GraphQL.js. For comparison with graphql-tools let's take its brilliant example "Author <-> Posts". Example data. Let take a look at example data. It consists of two arrays of authors and posts. Each post has a reference authorId:
The graphql.GraphQL bean can be defined by solely using the GraphQL Java implementation, or in combination with other integration libraries like GraphQL Java Tools or GraphQL SPQR. As mentioned before the first one is added as transitive dependency, other integration libraries must be added to the classpath manually.