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: docs/codegen-options.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,9 @@
25
25
|`generateParameterizedFieldsResolvers`| Boolean | True | If true, then generate separate `Resolver` interface for parametrized fields. If false, then add field to the type definition and ignore field parameters. |
26
26
|`generateExtensionFieldsResolvers`| Boolean | False | Specifies whether all fields in extensions (`extend type` and `extend interface`) should be present in Resolver interface instead of the type class itself. |
27
27
|`subscriptionReturnType`| String | Empty | Return type for subscription methods. For example: `org.reactivestreams.Publisher`, `io.reactivex.Observable`, etc. |
28
-
|`generateRequests`| Boolean | False | Specifies whether client-side classes should be generated for each query, mutation and subscription. This includes: `Request`class (contains input data) and `ResponseProjection`class (contains response fields). |
28
+
|`generateClient`| Boolean | False | Specifies whether client-side classes should be generated for each query, mutation and subscription. This includes: `Request`classes (contain input data), `ResponseProjection`classes for each type (contain response fields) and `Response` classes (contain response data). |
29
29
|`requestSuffix`| String | Request | Sets the suffix for `Request` classes. |
30
+
|`responseSuffix`| String | Response | Sets the suffix for `Response` classes. |
30
31
|`responseProjectionSuffix`| String | ResponseProjection | Sets the suffix for `ResponseProjection` classes. |
31
32
|`parametrizedInputSuffix`| String | ParametrizedInput | Sets the suffix for `ParametrizedInput` classes. |
32
33
|`parentInterfaces`|*See [parentInterfaces](#option-parentinterfaces)*| Empty | Block to define parent interfaces for generated interfaces (query / mutation / subscription / type resolver) |
Copy file name to clipboardExpand all lines: plugins/gradle/graphql-java-codegen-gradle-plugin/src/main/java/io/github/kobylynskyi/graphql/codegen/gradle/GraphQLCodegenGradleTask.java
+41-2Lines changed: 41 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -48,8 +48,16 @@ public class GraphQLCodegenGradleTask extends DefaultTask implements GraphQLCode
0 commit comments