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
| outputDir | String | None | The output target directory into which code will be generated. |
99
-
| apiPackage | String | Empty | Java package for generated api classes (Query, Mutation, Subscription). |
100
-
| modelPackage | String | Empty | Java package for generated model classes (type, input, interface, enum, union). |
101
-
| generateApis | Boolean | True | Specifies whether api classes should be generated as well as model classes. |
102
-
| customTypesMapping | Map(String,String) | Empty | Can be used to supply custom mappings for scalars. <br/> Supports:<br/> * Map of (GraphqlObjectName.fieldName) to (JavaType) <br/> * Map of (GraphqlType) to (JavaType) |
103
-
| customAnnotationsMapping | Map(String,String) | Empty | Can be used to supply custom annotations (serializers) for scalars. <br/> Supports:<br/> * Map of (GraphqlObjectName.fieldName) to (JavaType) <br/> * Map of (GraphqlType) to (JavaType) |
| outputDir | String | None | The output target directory into which code will be generated. |
99
+
| apiPackage | String | Empty | Java package for generated api classes (Query, Mutation, Subscription). |
100
+
| modelPackage | String | Empty | Java package for generated model classes (type, input, interface, enum, union). |
101
+
| generateApis | Boolean | True | Specifies whether api classes should be generated as well as model classes. |
102
+
| customTypesMapping | Map(String,String) | Empty | Can be used to supply custom mappings for scalars. <br/> Supports:<br/> * Map of (GraphqlObjectName.fieldName) to (JavaType) <br/> * Map of (GraphqlType) to (JavaType) |
103
+
| customAnnotationsMapping | Map(String,String) | Empty | Can be used to supply custom annotations (serializers) for scalars. <br/> Supports:<br/> * Map of (GraphqlObjectName.fieldName) to (JavaType) <br/> * Map of (GraphqlType) to (JavaType) |
104
104
| modelValidationAnnotation | String |@javax.validation.<br>constraints.NotNull | Annotation for mandatory (NonNull) fields. Can be null/empty. |
105
-
| modelNamePrefix | String | Empty | Sets the prefix for GraphQL model classes (type, input, interface, enum, union). |
106
-
| modelNameSuffix | String | Empty | Sets the suffix for GraphQL model classes (type, input, interface, enum, union). |
107
-
| generateEqualsAndHashCode | Boolean | False | Specifies whether generated model classes should have equals and hashCode methods defined. |
108
-
105
+
| modelNamePrefix | String | Empty | Sets the prefix for GraphQL model classes (type, input, interface, enum, union). |
106
+
| modelNameSuffix | String | Empty | Sets the suffix for GraphQL model classes (type, input, interface, enum, union). |
107
+
| subscriptionReturnType | String | Empty | Return type for subscription methods. For example: `org.reactivestreams.Publisher`, `io.reactivex.Observable`, etc. |
108
+
| generateEqualsAndHashCode | Boolean | False | Specifies whether generated model classes should have equals and hashCode methods defined. |
109
+
| generateToString | Boolean | False | Specifies whether generated model classes should have toString method defined. |
110
+
| jsonConfigurationFile | String | Empty | Path to an external mapping configuration. |
111
+
112
+
#### External mapping configuration
113
+
114
+
Provide a path to external file via property `jsonConfigurationFile`
Copy file name to clipboardExpand all lines: graphql-codegen-gradle-plugin/src/main/java/io/github/kobylynskyi/graphql/codegen/gradle/GraphqlCodegenGradleTask.java
0 commit comments