A collection of example apps that use graphql-kotlin libraries to test and demonstrate usages can be found in the examples module.
graphql-kotlin-client can be generated by using the provided Maven or Gradle. Example integration using Maven and
Gradle plugins can be found under the examples/client
There is also an example of Apollo Federation
with two Spring Boot apps using
graphql-kotlin-federation and an Apollo Gateway app in Nodejs that exposes a single
federated schema in examples/federation
project. Please refer to the README files for details on how to run each application.
Example integrations of
graphql-kotlin-schema-generator with number of popular application frameworks can be found under
These examples also demonstrates how to include
DataLoaders in your query execution.
Ktor Server Example
Spring Server Example
One way to run a GraphQL server is with Spring Boot. A sample Spring
Boot app that uses Spring
Webflux together with
graphql-kotlin-schema-generator and graphql-playground is provided as
All the examples used in this documentation should be available in this sample app.
In order to run it you can run Application.kt directly from your IDE. Alternatively you can also use the Spring Boot plugin from the command line.
Once the app has started you can explore the example schema by opening Playground endpoint at http:.