Skip to content

Commit b28ada9

Browse files
committed
update doc
1 parent 35e7649 commit b28ada9

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Writerside/topics/ide.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
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

75
You can get a ready-to-serve version of [Apollo Sandbox](https://studio.apollographql.com/sandbox/explorer/) using the `sandboxHtml()` function:
86

97
```kotlin
108
val pageTitle = "Welcome to my API"
119
val 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)

0 commit comments

Comments
 (0)