Skip to content

Repository files navigation

GraphQL Kotlin DSL

Generates type-safe Kotlin DSL query builders from GraphQL schema files.

val q = query("GetAuthor") {
    author(id = "42") {
        name
        email
    }
}
// → query GetAuthor { author(id: "42") { name email } }

query {} and mutation {} return a String directly — no extra serialization step.

Quick start

// build.gradle.kts
plugins {
    kotlin("jvm")
    id("io.github.graphdsl.graphdsl-gradle-plugin") version "0.1.4"
}

Place your .graphqls schema in src/main/graphql/, then build you project.

Generated sources land in build/generated-sources/graphdsl/ and are wired into compilation automatically.

Documentation

Full docs — configuration reference, CLI usage, and module overview — are at graphdsl.github.io.

License

Apache 2.0 — see LICENSE.

Code of Conduct

This project follows the Contributor Covenant. Please read it before contributing.

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages