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.
// 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.
Full docs — configuration reference, CLI usage, and module overview — are at graphdsl.github.io.
Apache 2.0 — see LICENSE.
This project follows the Contributor Covenant. Please read it before contributing.