Skip to content
@graphdsl

GraphDSL

Type-safe GraphQL Kotlin DSL code generator

GraphDSL

Type-safe GraphQL Kotlin DSL code generator

GraphDSL reads your GraphQL schema and generates a type-safe Kotlin DSL so you can build queries and mutations programmatically — no string templates, no typos, no guessing field names.

val query = query("GetPost") {
    post(id = "42") {
        id
        title
        author {
            name
            email
        }
    }
}
// → query GetPost { post(id: "42") { id title author { name email } } }

---
Projects

┌────────────────────────────────────────────────┬──────────────────────────────────────┐
│                   RepositoryDescription              │
├────────────────────────────────────────────────┼──────────────────────────────────────┤
│ https://github.com/graphdsl/graphql-kotlin-dsl │ Core library, Gradle plugin, and CLI │
├────────────────────────────────────────────────┼──────────────────────────────────────┤
│ https://github.com/graphdsl/graphdsl.github.io │ Documentation site                   │
└────────────────────────────────────────────────┴──────────────────────────────────────┘

---
Built with

Language & Runtime
- https://kotlinlang.org/ 1.9 — JVM target 17
- https://www.graphql-java.com/ — GraphQL schema parsing
- https://github.com/JetBrains/kotlin/tree/master/libraries/kotlinx-metadata/jvm — Kotlin type metadata inspection

Code Generation
- https://www.stringtemplate.org/ (ANTLR ST4) — template-driven source file generation
- https://www.javassist.org/ — bytecode utilities

Tooling
- https://gradle.org/ — build system with convention plugins and included builds
- https://ajalt.github.io/clikt/ — Kotlin CLI framework
- https://junit.org/junit5/ — testing

---
Links

- https://graphdsl.github.io
- https://graphdsl.github.io/getting-started
- https://graphdsl.github.io/api/gradle-plugin
- https://kristileka.dev

Popular repositories Loading

  1. graphql-kotlin-dsl graphql-kotlin-dsl Public

    Kotlin 1 1

  2. graphdsl.github.io graphdsl.github.io Public

  3. .github .github Public

  4. gradle-portal-verification-I80A5VBD gradle-portal-verification-I80A5VBD Public

Repositories

Showing 4 of 4 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…