
Getting started - GraphQL Java
Getting started graphql-java requires at least Java 11. How to use the latest release with Gradle Make sure mavenCentral is among your repos:
Tutorial with Spring for GraphQl | GraphQL Java
Learn first-hand from the founder of GraphQL Java and co-author of Spring for GraphQL. The book is suitable for beginners and also includes advanced topics for intermediate readers.
Hello from GraphQL Java | GraphQL Java
GraphQL Java home pageGraphQL Java The Java implementation of GraphQL
Fetching data - GraphQL Java
Once we have a list of ProductDTO objects we typically don't need specialised data fetchers on each field. graphql-java ships with a smart graphql.schema.PropertyDataFetcher that knows …
Execution - GraphQL Java
The graphql-java engine ensures that all the CompletableFuture objects are composed together to provide an execution result that follows the graphql specification.
Schema | GraphQL Java
Your GraphQL API has a schema which defines each field that can be queried or mutated and what types those fields are. graphql-java offers two different ways of defining the schema: …
Instrumentation - GraphQL Java
The primary use case for this is to allow say performance monitoring and custom logging, but it could be used for many purposes. When you build the Graphql object you can specify what …
Subscriptions - GraphQL Java
Now the exact details of how you get that stream of events is up to you and you're reactive code. graphql-java gives you a way to map the graphql query fields over that stream of objects just …
Data mapping | GraphQL Java
The default data fetcher in graphql-java is graphql.schema.PropertyDataFetcher which has both map support and POJO support. For every object in the list it will look for an id field, find it by …
Batching | GraphQL Java
If you are using graphql, you are likely to making queries on a graph of data (no surprises there). However, it's easy to implement inefficient code with naive loading of a graph of data.