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
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@
18
18
|`generateImmutableModels`| Boolean | False | Specifies whether generated model classes should be immutable. |
19
19
|`generateToString`| Boolean | False | Specifies whether generated model classes should have toString method defined. |
20
20
|`addGeneratedAnnotation`| Boolean | True | Specifies whether generated classes should have `@Generated` annotation. |
21
+
|`generateJacksonTypeIdResolver`| Boolean | False | Specifies whether generated union interfaces should be annotated with a custom Jackson type id resolver generated in model package. |
21
22
|`apiNamePrefix`| String | Empty | Sets the prefix for GraphQL api classes (query, mutation, subscription). |
22
23
|`apiNameSuffix`| String |`Resolver`| Sets the suffix for GraphQL api classes (query, mutation, subscription). |
@@ -51,6 +52,7 @@ See [DirectiveAnnotationsMapping](#option-directiveannotationsmapping)* |
51
52
|`responseProjectionSuffix`| String | ResponseProjection | Sets the suffix for `ResponseProjection` classes. |
52
53
|`parametrizedInputSuffix`| String | ParametrizedInput | Sets the suffix for `ParametrizedInput` classes. |
53
54
|`parentInterfaces`|*See<br>[parentInterfaces](#option-parentinterfaces)*| Empty | Block to define parent interfaces for generated interfaces (query / mutation / subscription / type resolver). *See [parentInterfaces](#option-parentinterfaces)*|
55
+
|`generateAllMethodInProjection`| Boolean | true | Enables whether the `all$()` method should be generated in the projection classes. Disabling enforces the client to select the fields manually. |
54
56
|`responseProjectionMaxDepth`| Integer | 3 | Sets max depth when use `all$()` which for facilitating the construction of projection automatically, the fields on all projections are provided when it be invoked. This is a global configuration, of course, you can use `all$(max)` to set for each method. For self recursive types, too big depth may result in a large number of returned data!|
55
57
|`generatedLanguage`| Enum | GeneratedLanguage.JAVA | Choose which language you want to generate, Java,Scala,Kotlin were supported. Note that due to language features, there are slight differences in default values between languages.|
56
58
|`generateModelOpenClasses`| Boolean | false | The class type of the generated model. If true, generate normal classes, else generate data classes. It only support in kotlin(```data class```) and scala(```case class```). Maybe we will consider to support Java ```record``` in the future.|
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
+27-1
Original file line number
Diff line number
Diff line change
@@ -83,17 +83,19 @@ public class GraphQLCodegenGradleTask extends DefaultTask implements GraphQLCode
Copy file name to clipboardExpand all lines: plugins/maven/graphql-java-codegen-maven-plugin/src/main/java/io/github/kobylynskyi/graphql/codegen/GraphQLCodegenMojo.java
+18
Original file line number
Diff line number
Diff line change
@@ -152,6 +152,9 @@ public class GraphQLCodegenMojo extends AbstractMojo implements GraphQLCodegenCo
0 commit comments