Skip to content

Commit 2de0c5c

Browse files
authored
Fix Classname of ktor client (#1134)
* Fix Classname of ktor client * Fix URL in ktor-example
1 parent 0c93dfa commit 2de0c5c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

website/docs/client/client-serialization.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,8 @@ graphql {
366366
By default, `ServiceLoader` mechanism will load the first available GraphQL client serializer from the classpath.
367367

368368
```kotlin
369-
val client = GraphQLWebClient(
370-
url = "http://localhost:8080/graphql"
369+
val client = GraphQLKtorClient(
370+
url = URL("http://localhost:8080/graphql")
371371
serializer = GraphQLClientKotlinxSerializer()
372372
)
373373
```
@@ -465,8 +465,8 @@ By default, `ServiceLoader` mechanism will load the first available GraphQL clie
465465
also explicitly specify serializer during client construction
466466

467467
```kotlin
468-
val client = GraphQLWebClient(
469-
url = "http://localhost:8080/graphql"
468+
val client = GraphQLKtorClient(
469+
url = URL("http://localhost:8080/graphql")
470470
serializer = GraphQLClientJacksonSerializer()
471471
)
472472
```

0 commit comments

Comments
 (0)