GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - kobylynskyi/graphql-java-codegen: Make your GraphQL Java application schema-driven.

BranchesTags
Open more actions menu

Latest commit

 

History

1,083 Commits
1,083 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
config/checkstyle
config/checkstyle
 
 
docs
docs
 
 
gradle/wrapper
gradle/wrapper
 
 
plugins
plugins
 
 
scripts
scripts
 
 
src
src
 
 
.gitignore
.gitignore
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
_config.yml
_config.yml
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 

Repository files navigation

GraphQL Codegen

Donate

Build Discussions License: MIT

Sonarcloud Status SonarCloud Coverage SonarCloud Bugs SonarCloud Vulnerabilities

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.
  • Interfaces for GraphQL type fields (e.g. for parametrized fields) aka "Resolvers".
  • Client Request classes for GraphQL queries, mutations and subscriptions.

Features

  • Generate classes in Java, Kotlin or Scala.
  • Recursive schemas lookup by file name pattern.
  • Generate code based on GraphQL schema or GraphQL Query Introspection Result.
  • Generate POJOs with or without: Builder pattern, immutable fields, toString(), equals() and hashCode(), etc.
  • Flexible API interfaces naming conventions (based on schema file name, folder name, etc.)
  • Custom java package names for model and API classes.
  • Custom prefix/suffix for model, API, type resolver, request, response classes.
  • Custom annotations for generated classes (e.g.: validation annotations for generated model classes or specific type fields, annotations for GraphQL directives, etc.)
  • Relay support.
  • Ability to define codegen configuration via external json file.

For the full list of codegen configs please refer to: Codegen Options

Supported plugins

  • Gradle plugin: graphql-java-codegen-gradle-plugin
  • Maven plugin: grapqhl-java-codegen-maven-plugin
  • SBT plugin: grapqhl-java-codegen-sbt-plugin

Contributing

Please see CONTRIBUTING.md.

Inspired by

swagger-codegen

About

Make your GraphQL Java application schema-driven.

kobylynskyi.github.io/graphql-java-codegen/

Topics

codegengraphqlgraphql-codegengraphql-gradlegraphql-javagraphql-kotlingraphql-mavengraphql-scala

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity

Stars

299 stars

Watchers

7 watching

Forks

111 forks
Report repository

Releases

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.