File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 11# IDE
22
3- One of GraphQL strong points is tooling.
4-
5- Apollo Kotlin Execution comes with a built-in IDE that makes it easy to explore your schema and debug your operations.
3+ Apollo Kotlin Execution comes with a built-in IDE that makes it easy to explore your schema, write your operation with autocomplete and execute them.
64
75You can get a ready-to-serve version of [ Apollo Sandbox] ( https://studio.apollographql.com/sandbox/explorer/ ) using the ` sandboxHtml() ` function:
86
97``` kotlin
108val pageTitle = " Welcome to my API"
119val initialEndpoint = " http://localhost:8080/graphql"
1210
13- sandboxHtml(title = pageTitle, initialEndpoint = initialEndpoint)
11+ val html = sandboxHtml(title = pageTitle, initialEndpoint = initialEndpoint)
12+
13+ // Expose this graphql to your route of choice, /sandbox for an example
14+ get(" /sandbox" ) {
15+ respondHtml(html)
16+ }
1417```
1518
1619[ ![ Apollo Sandbox] ( sandbox.png )] ( http://localhost:8080/sandbox/index.html )
1720
18- You can then serve it using your favorite server or use any of the existing integrations:
21+ The builtin integrations provide helper functions for this:
1922
2023* [ Spring] ( spring.md )
2124* [ Ktor] ( ktor.md )
You can’t perform that action at this time.
0 commit comments