GraphQL Kotlin Codegen
A graphql-codegen plugin that enables schema-first development with graphql-kotlin.
input.graphql
"A description for MyType"
type MyType {
"A description for myField"
myField: String!
deprecatedField: String
@deprecated(reason: "Use something else instead")
}
output.kt
import com.expediagroup.graphql.generator.annotations.*
@GraphQLDescription("A description for MyInputType")
data class MyType(
@GraphQLDescription("A description for myField")
val myField: String,
@Deprecated("Use something else instead")
val deprecatedField: String? = null,
)