Product Promotion
0x5a.live
for different kinds of informations and explorations.
GitHub - AurityLab/graphql-kotlin-toolkit: GraphQL toolkit for Kotlin.
GraphQL toolkit for Kotlin. Contribute to AurityLab/graphql-kotlin-toolkit development by creating an account on GitHub.
Visit SiteGitHub - AurityLab/graphql-kotlin-toolkit: GraphQL toolkit for Kotlin.
GraphQL toolkit for Kotlin. Contribute to AurityLab/graphql-kotlin-toolkit development by creating an account on GitHub.
Powered by 0x5a.live ๐
GraphQL Kotlin Toolkit
A toolkit for GraphQL, specifically for Kotlin. This toolkit provides some useful tools that are compatible with graphql-java.
Code generation
This tool follows the schema-first approach, in which you first write your schema.graphqls files and implement the server-side code for it afterwards. This code generator additionally creates an interface for each resolver. These can be used to implement each resolver in a clean way. The tool also provides specific parameters for each argument, allowing a more type safe way to access the incoming data. This code generator also supports Kotlin's null safety feature!
Example resolver:
class MutationUpdateUser : GQLMutationUpdateUser {
override fun resolve(input: GQLUpdateUserInput, env: GQLMutationUpdateUser.Env): User {
TODO("implement your resolver")
}
}
Getting started here!
Spring Boot integration
This integration works in a more opinionated way as it provides additional annotations which can be used to register code for various GraphQL types. It also comes with a servlet, which handles all GraphQL requests.
Getting started here!
Documentation
- Code generation
- Spring Boot integration
Kotlin Resources
are all listed below.
Made with โค๏ธ
to provide different kinds of informations and resources.