You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/graphql-kotlin-gradle-plugin/README.md
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,22 @@ This extension can be used to configure global options instead of explicitly con
23
23
24
24
```kotlin
25
25
graphql {
26
-
packageName ="com.expediagroup.graphql.generated"
26
+
client {
27
+
// GraphQL server endpoint that will be used to for running introspection queries. Alternatively you can download schema directly from `sdlEndpoint`.
27
28
endpoint ="http://localhost:8080/graphql"
29
+
// GraphQL server SDL endpoint that will be used to download schema. Alternatively you can run introspection query against `endpoint`.
30
+
sdlEndpoint ="http://localhost:8080/sdl"
31
+
// Target package name to be used for generated classes.
32
+
packageName ="com.example.generated"
33
+
// Optional HTTP headers to be specified on an introspection query or SDL request.
34
+
headers["X-Custom-Header"] ="Custom-Header-Value"
35
+
// Boolean flag indicating whether or not selection of deprecated fields is allowed.
36
+
allowDeprecatedFields =false
37
+
// Custom GraphQL scalar to converter mapping containing information about corresponding Java type and converter that should be used to serialize/deserialize values.
0 commit comments