@@ -16,9 +16,7 @@ Language (SDL) directly. `graphqlDownloadSDL` task requires target GraphQL serve
1616be executed directly from the command line by explicitly passing ` endpoint ` parameter
1717
1818``` shell script
19-
2019$ gradle graphqlDownloadSDL --endpoint=" http://localhost:8080/sdl"
21-
2220```
2321
2422Task can also be explicitly configured in your Gradle build file
@@ -55,18 +53,18 @@ graphqlDownloadSDL {
5553</TabItem >
5654</Tabs >
5755
58- > ; NOTE: This task does not automatically configure itself to be part of your build lifecycle. You will need to explicitly
59- > ; invoke it OR configure it as a dependency of some other task.
56+ :::info
57+ This task does not automatically configure itself to be part of your build lifecycle. You will need to explicitly
58+ invoke it OR configure it as a dependency of some other task.
59+ :::
6060
6161## Introspecting Schema
6262
6363Introspection task requires target GraphQL server ` endpoint ` to be specified. Task can be executed directly from the
6464command line by explicitly passing endpoint parameter
6565
6666``` shell script
67-
6867$ gradle graphqlIntrospectSchema --endpoint=" http://localhost:8080/graphql"
69-
7068```
7169
7270Task can also be explicitly configured in your Gradle build file
@@ -103,8 +101,10 @@ graphqlIntrospectSchema {
103101</TabItem >
104102</Tabs >
105103
106- > ; NOTE: This task does not automatically configure itself to be part of your build lifecycle. You will need to explicitly
107- > ; invoke it OR configure it as a dependency of some other task.
104+ :::info
105+ This task does not automatically configure itself to be part of your build lifecycle. You will need to explicitly
106+ invoke it OR configure it as a dependency of some other task.
107+ :::
108108
109109## Generating Client
110110
@@ -114,9 +114,7 @@ configuration and storing GraphQL queries under `src/main/resources` directories
114114command line by explicitly providing required properties.
115115
116116``` shell script
117-
118117$ gradle graphqlGenerateClient --schemaFileName" mySchema.graphql" --packageName=" com.example.generated"
119-
120118```
121119
122120Task can also be explicitly configured in your Gradle build file
@@ -166,15 +164,12 @@ custom [scalar converter](https://github.com/ExpediaGroup/graphql-kotlin/blob/ma
166164For example given following custom scalar in our GraphQL schema
167165
168166``` graphql
169-
170167scalar UUID
171-
172168```
173169
174170We can create a custom converter to automatically convert this custom scalar to ` java.util.UUID `
175171
176172``` kotlin
177-
178173package com.example
179174
180175import com.expediagroup.graphql.client.converter.ScalarConverter
@@ -184,7 +179,6 @@ class UUIDScalarConverter : ScalarConverter<UUID> {
184179 override fun toScalar (rawValue : Any ): UUID = UUID .fromString(rawValue.toString()
185180 override fun toJson (value : UUID ): String = value.toString()
186181}
187-
188182```
189183
190184Afterwards we need to configure our plugin to use this custom converter
@@ -291,9 +285,7 @@ configuration and storing GraphQL queries under `src/test/resources` directories
291285command line by explicitly providing required properties.
292286
293287```shell script
294-
295288$ gradle graphqlGenerateTestClient -- schemaFileName" mySchema.graphql" -- packageName= " com.example.generated"
296-
297289```
298290
299291Task can also be explicitly configured in your Gradle build file
@@ -335,7 +327,9 @@ graphqlGenerateTestClient {
335327This will process all GraphQL queries located under `src/ test/ resources` and generate corresponding GraphQL Kotlin clients.
336328Generated classes will be automatically added to the project test compile sources.
337329
338- > NOTE : `graphqlGenerateTestClient` cannot be configured through the `graphql` extension and has to be explicitly configured.
330+ ::: info
331+ `graphqlGenerateTestClient` cannot be configured through the `graphql` extension and has to be explicitly configured.
332+ :::
339333
340334## Minimal Client Configuration Example
341335
@@ -688,8 +682,10 @@ graphqlGenerateSDL {
688682< / TabItem >
689683< / Tabs >
690684
691- > NOTE : This task does not automatically configure itself to be part of your build lifecycle. You will need to explicitly
692- > invoke it OR configure it as a dependency of some other task.
685+ ::: info
686+ This task does not automatically configure itself to be part of your build lifecycle. You will need to explicitly
687+ invoke it OR configure it as a dependency of some other task.
688+ :::
693689
694690## Generating SDL with Custom Hooks Provider Example
695691
@@ -776,5 +772,7 @@ dependencies {
776772< / TabItem >
777773< / Tabs >
778774
779- > NOTE : This task does not automatically configure itself to be part of your build lifecycle. You will need to explicitly
780- > invoke it OR configure it as a dependency of some other task.
775+ ::: info
776+ This task does not automatically configure itself to be part of your build lifecycle. You will need to explicitly
777+ invoke it OR configure it as a dependency of some other task.
778+ :::
0 commit comments