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
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@
67
67
|`generateSealedInterfaces`| Boolean | False | This applies to generated interfaces on unions and interfaces. If true, generate sealed interfaces, else generate normal ones. It is only supported in Kotlin and Scala. |
68
68
|`typesAsInterfaces`| Set(String) | Empty | Types that must generated as interfaces should be defined here in format: `TypeName` or `@directive`. E.g.: `User`, `@asInterface`. |
69
69
|`fieldsWithDataFetcherResult`| Set(String) | Empty | Types that must have DataFetchResult should be defined here in format: `TypeName`, or `TypeName.fieldName` or `@directive`. E.g.: `Item`, `Item.items` or `@dataFetcherResult`. |
70
-
|`useObjectMapperForRequestSerialization`| Set(String) | Empty | Fields that require serialization using `tools.jackson.databind.ObjectMapper#writeValueAsString(Object)`. Values should be defined here in the following format: `GraphqlObjectName.fieldName` or `GraphqlTypeName`. If just type is specified, then all fields of this type will be serialized using ObjectMapper. E.g.: `["Person.createdDateTime", ZonedDateTime"]`|
70
+
|`useObjectMapperForRequestSerialization`| Set(String) | Empty | Fields that require serialization using `com.fasterxml.jackson.databind.ObjectMapper#writeValueAsString(Object)`. Values should be defined here in the following format: `GraphqlObjectName.fieldName` or `GraphqlTypeName`. If just type is specified, then all fields of this type will be serialized using ObjectMapper. E.g.: `["Person.createdDateTime", ZonedDateTime"]`|
71
71
|`supportUnknownFields`| Boolean | False | Specifies whether api classes should support unknown fields during serialization or deserialization. If `true`, classes will include a property of type [`java.util.Map<String,Object>`](https://docs.oracle.com/javase/8/docs/api/index.html?java/util/Map.html) that will store unknown fields. |
72
72
|`unknownFieldsPropertyName`| String | userDefinedFields | Specifies the name of the property to be included in api classes to support unknown fields during serialization or deserialization |
73
73
|`skip`| Boolean | False | If true, then code generation will not happen |
@@ -161,9 +161,9 @@ Can be used to supply custom annotations (serializers) for scalars.
161
161
Supports following formats:
162
162
163
163
* Map of (GraphQLObjectName.fieldName) to (JavaAnnotation).
Copy file name to clipboardExpand all lines: plugins/gradle/example-client/src/main/java/io/github/kobylynskyi/order/external/product/ProductServiceGraphQLClient.java
Copy file name to clipboardExpand all lines: plugins/gradle/example-client/src/main/java/io/github/kobylynskyi/order/external/starwars/CharacterTypeResolver.java
Copy file name to clipboardExpand all lines: plugins/maven/example-client/src/main/java/io/github/kobylynskyi/order/external/product/ProductServiceGraphQLClient.java
Copy file name to clipboardExpand all lines: plugins/maven/example-client/src/main/java/io/github/kobylynskyi/order/external/starwars/CharacterTypeResolver.java
0 commit comments