GraphQL Java Codegen makes it easy to make your Java application to follow a schema-first approach whether it is a server or client application.
Following classes can be generated based on your GraphQL schema:
- Interfaces for GraphQL queries, mutations and subscriptions.
- Interfaces for GraphQL unions.
- POJO classes for GraphQL types and inputs.
- Enum classes for GraphQL enums.
- Interface Resolvers for GraphQL type fields (e.g. for parametrized fields).
- Client Request classes for GraphQL queries, mutations and subscriptions.
- Gradle plugin: graphql-java-codegen-gradle-plugin
- Maven plugin: grapqhl-java-codegen-maven-plugin
- SBT plugin: grapqhl-java-codegen-sbt-plugin
Please see CONTRIBUTING.md.