|
1 |
| ---- |
2 |
| -id: examples |
3 |
| -title: Examples |
4 |
| ---- |
5 |
| - |
6 |
| -## Spring Example |
7 |
| - |
8 |
| -One way to run a GraphQL server is with [Spring Boot](https://github.com/spring-projects/spring-boot). A sample Spring |
9 |
| -Boot app that uses [Spring |
10 |
| -Webflux](https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html) together with |
11 |
| -`graphql-kotlin-schema-generator` and [graphql-playground](https://github.com/prisma/graphql-playground) is provided as |
12 |
| -a [examples/spring](https://github.com/ExpediaGroup/graphql-kotlin/tree/master/examples/spring). All the examples used |
13 |
| -in this documentation should be available in the sample app. |
14 |
| - |
15 |
| -In order to run it you can run |
16 |
| -[Application.kt](https://github.com/ExpediaGroup/graphql-kotlin/blob/master/examples/spring/src/main/kotlin/com/expediagroup/graphql/examples/Application.kt) |
17 |
| -directly from your IDE. Alternatively you can also use the Spring Boot maven plugin by running `mvn spring-boot:run` |
18 |
| -from the command line. Once the app has started you can explore the example schema by opening Playground endpoint at |
19 |
| -[http://localhost:8080/playground](http://localhost:8080/playground). |
20 |
| - |
21 |
| -## Federation Example |
22 |
| - |
23 |
| -There is also an example of [Apollo Federation](https://www.apollographql.com/docs/apollo-server/federation/introduction/) 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](https://github.com/ExpediaGroup/graphql-kotlin/tree/master/examples/federation) |
24 |
| -project. Please refer to the README files for details on how to run each application. |
| 1 | +--- |
| 2 | +id: examples |
| 3 | +title: Examples |
| 4 | +--- |
| 5 | + |
| 6 | +## Spring Server Example |
| 7 | + |
| 8 | +One way to run a GraphQL server is with [Spring Boot](https://github.com/spring-projects/spring-boot). A sample Spring |
| 9 | +Boot app that uses [Spring |
| 10 | +Webflux](https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html) together with |
| 11 | +`graphql-kotlin-schema-generator` and [graphql-playground](https://github.com/prisma/graphql-playground) is provided as |
| 12 | +a [examples/spring](https://github.com/ExpediaGroup/graphql-kotlin/tree/master/examples/spring). All the examples used |
| 13 | +in this documentation should be available in the sample app. |
| 14 | + |
| 15 | +In order to run it you can run |
| 16 | +[Application.kt](https://github.com/ExpediaGroup/graphql-kotlin/blob/master/examples/spring/src/main/kotlin/com/expediagroup/graphql/examples/Application.kt) |
| 17 | +directly from your IDE. Alternatively you can also use the Spring Boot maven plugin by running `mvn spring-boot:run` |
| 18 | +from the command line. Once the app has started you can explore the example schema by opening Playground endpoint at |
| 19 | +[http://localhost:8080/playground](http://localhost:8080/playground). |
| 20 | + |
| 21 | +## Federation Example |
| 22 | + |
| 23 | +There is also an example of [Apollo Federation](https://www.apollographql.com/docs/apollo-server/federation/introduction/) 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](https://github.com/ExpediaGroup/graphql-kotlin/tree/master/examples/federation) |
| 24 | +project. Please refer to the README files for details on how to run each application. |
0 commit comments