Description
Most GraphQL libraries require developers to maintain two sources of truth for their GraphQL API: the schema and the corresponding code (data fetchers or resolvers, and types). Given the similarities between Kotlin and GraphQL, such as the ability to define nullable/non-nullable types, a schema can be generated from Kotlin code without any separate schema specification. graphql-kotlin builds upon graphql-java to allow code-only, or resolver-first, GraphQL services to be built.
For information on GraphQL, please visit the GraphQL website.
For information on graphql-java, please visit GraphQL Java.
GraphQL Kotlin alternatives and similar libraries
Based on the "Web" category.
Alternatively, view GraphQL Kotlin alternatives based on common mentions on social networks and blogs.
-
javalin
DISCONTINUED. A simple and modern Java and Kotlin web framework [Moved to: https://github.com/javalin/javalin] -
apollo-android
:rocket: A strongly-typed, caching GraphQL client for the JVM, Android, and Kotlin multiplatform. -
http4k
The Functional toolkit for Kotlin HTTP applications. http4k provides a simple and uniform way to serve, consume, and test HTTP services. -
skrape.it
A Kotlin-based testing/scraping/parsing library providing the ability to analyze and extract data from HTML (server & client-side rendered). It places particular emphasis on ease of use and a high level of readability by providing an intuitive DSL. It aims to be a testing lib, but can also be used to scrape websites in a convenient fashion. -
hexagon
Hexagon is a microservices toolkit written in Kotlin. Its purpose is to ease the building of services (Web applications or APIs) that run inside a cloud platform. -
firefly
Firefly is an asynchronous web framework for rapid development of high-performance web application. -
tekniq
A framework designed around Kotlin providing Restful HTTP Client, JDBC DSL, Loading Cache, Configurations, Validations, and more -
bootique-kotlin
DISCONTINUED. RETIRED. Provides extension functions and features for smooth development with Bootique and Kotlin. -
Pellet
An opinionated, Kotlin-first web framework that helps you write fast, concise, and correct backend services 🚀. -
Zeko-RestApi
Asynchronous web framework for Kotlin. Create REST APIs in Kotlin easily with automatic Swagger/OpenAPI doc generation -
komock
KoMock - Simple HTTP/Consul/SpringConfig http server framework written in Kotlin. Wiremock use cases -
voyager-server-spring-boot-starter
Easily create REST endpoints with permissions (access control level) and hooks includeded
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of GraphQL Kotlin or a related project?
README
GraphQL Kotlin
GraphQL Kotlin is a collection of libraries, built on top of graphql-java, that simplify running GraphQL clients and servers in Kotlin.
Visit our documentation site for more details.
📦 Modules
- clients - Lightweight GraphQL Kotlin HTTP clients based on Ktor HTTP client and Spring WebClient
- examples - Example apps that use graphql-kotlin libraries to test and demonstrate usages
- executions - Custom instrumentations for a GraphQL operation
- generator - Code-First schema generator and extensions to build Apollo Federation schemas
- plugins - Gradle and Maven plugins
- servers - Common and library specific modules for running a GraphQL server
⌨️ Usage
While all the individual modules of graphql-kotlin
are published as stand-alone libraries, the most common use cases are running a server and generating a type-safe client.
Server Example
A basic example of how you can run a GraphQL server can be found on our server documentation section.
Client Example
A basic setup of a GraphQL client can be found on our client documentation section.
📋 Documentation
More examples and documentation are available on our documentation site hosted in GitHub Pages. We also have the examples module which can be run locally for testing and shows example code using the libraries.
If you have a question about something you can not find in our documentation, the indivdual module README
s, or javadocs, feel free to contribute to the docs or start a disucssion and tag it with the question label.
If you would like to contribute to our documentation see the website directory for more information.
🗞 Blog Posts and Videos
The Blogs & Videos page in the GraphQL Kotlin documentation links to blog posts, release announcements, conference talks about the library, and general talks about GraphQL at Expedia Group.
👥 Contact
This project is part of Expedia Group Open Source but also maintained by a dedicated team
Expedia Group OSS
GraphQL Kotlin Committers
- Github team:
@ExpediaGroup/graphql-kotlin-committers
- Github team:
If you have a specific question about the library or code, please start a discussion for the community.
We also have a public channel, (#graphql-kotlin), open on the Kotlin Slack instance (kotlinlang.slack.com). See the info here on how to join this slack instance.
✏️ Contributing
To get started, please fork the repo and checkout a new branch. You can then build the library locally with Gradle
```shell script ./gradlew clean build
See more info in [CONTRIBUTING.md](CONTRIBUTING.md).
After you have your local branch set up, take a look at our [open issues](https://github.com/ExpediaGroup/graphql-kotlin/issues) to see where you can contribute.
## 🛡️ Security
For more info on how to contact the team for security issues or the supported versions that receive security updates, see [SECURITY.md](./.github/SECURITY.md)
## ⚖️ License
This library is licensed under the [Apache License, Version 2.0](LICENSE)
*Note that all licence references and agreements mentioned in the GraphQL Kotlin README section above
are relevant to that project's source code only.