Skip to content
Libraries for running a GraphQL server in Kotlin
Kotlin Other
  1. Kotlin 98.6%
  2. Other 1.4%
Branch: master
Clone or download
dariuszkuc [spring-server] upgrade to SpringBoot 2.2.1.RELEASE (#474)
With 2.2.1.RELEASE SpringBoot team changed the behavior that was automatically applying constructor binding to all classes referenced from the top level properties. New behavior requires explicitly specifying that we want to use constructor binding on all classes.

See spring-projects/spring-boot#18919 for more details
Latest commit 8d0c498 Nov 14, 2019

GraphQL Kotlin

Build Status codecov Docs Awesome Kotlin Badge

GraphQL Kotlin consists of number of libraries that aim to simplify running a GraphQL server in Kotlin.

📦 Modules

⌨️ Usage

Below is a basic example of how graphql-kotlin-schema-generator converts your Kotlin code into a GraphQL schema. For more details, see our documentation below or in the individual module READMEs

// Your existing Kotlin code

data class Widget(val id: Int, val value: String)

class WidgetService {
  fun widgetById(id: Int): Widget? {
    // grabs widget from a data source, might return null

// Generate the schema

val config = SchemaGeneratorConfig(supportedPackages = listOf("org.example"))
val queries = listOf(TopLevelObject(WidgetService()))

toSchema(config, queries)

will generate

type Query {
  widgetById(id: Int!): Widget

type Widget {
  id: Int!
  value: String!

📋 Documentation

Examples and documentation are available on our documentation, or in each module README file.

If you have a question about something you can not find in our documentation, the indivdual modules, or javadocs, feel free to create an issue and tag it with the question label.

👥 Contact

This project is part of Expedia Group Open Source but also maintained by a dedicated team

✏️ Contributing

To get started, please fork the repo and checkout a new branch. You can then build the library locally with Maven

mvn clean install

See more info in

⚖️ License

This library is licensed under the Apache License, Version 2.0

You can’t perform that action at this time.