public class MappingConfig extends java.lang.Object implements GraphQLCodegenConfiguration, Combinable<MappingConfig>
| Constructor and Description |
|---|
MappingConfig() |
| Modifier and Type | Method and Description |
|---|---|
void |
combine(MappingConfig source)
Combine with source.
|
java.lang.Boolean |
getAddGeneratedAnnotation()
Specifies whether generated classes should be annotated with @Generated
|
ApiInterfaceStrategy |
getApiInterfaceStrategy()
Specifies the strategy of generating api interfaces.
|
java.lang.String |
getApiNamePrefix()
Sets the prefix for GraphQL api classes (query, mutation, subscription).
|
ApiNamePrefixStrategy |
getApiNamePrefixStrategy()
Sets prefix strategy for GraphQL api classes (query, mutation, subscription).
|
java.lang.String |
getApiNameSuffix()
Sets the suffix for GraphQL api classes (query, mutation, subscription).
|
java.lang.String |
getApiPackageName()
Java package for generated api classes (Query, Mutation, Subscription).
|
java.lang.String |
getApiReturnListType()
Return type for api methods (query / subscription) that return list values
For example: reactor.core.publisher.Flux
|
java.lang.String |
getApiReturnType()
Return type for api methods (query / subscription)
For example: reactor.core.publisher.Mono
|
ApiRootInterfaceStrategy |
getApiRootInterfaceStrategy()
Specifies the strategy of generating root api interface.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getCustomAnnotationsMapping()
Can be used to supply custom annotations (serializers) for scalars.
|
java.util.Map<java.lang.String,java.lang.String> |
getCustomTemplates()
Can be used to supply paths to custom FreeMarker templates for code generation.
|
java.io.File |
getCustomTemplatesRoot()
Can be used to specify the root directory for the custom FreeMaker templates
|
java.util.Map<java.lang.String,java.lang.String> |
getCustomTypesMapping()
Can be used to supply custom mappings for scalars.
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getDirectiveAnnotationsMapping()
Map GraphQL directives to Java annotations.
|
java.util.Set<java.lang.String> |
getFieldsToExcludeFromGeneration()
Fields that WILL NOT be generated.
|
java.util.Set<java.lang.String> |
getFieldsWithDataFetcherResult()
Fields that require DataFetcherResult.
|
java.util.Set<java.lang.String> |
getFieldsWithoutResolvers()
Fields that DO NOT require Resolvers.
|
java.util.Set<java.lang.String> |
getFieldsWithResolvers()
Fields that require Resolvers.
|
java.lang.Boolean |
getGenerateAllMethodInProjection()
Enables the generation of the all$ method in the projection classes of the client.
|
java.lang.Boolean |
getGenerateApis()
Specifies whether api classes should be generated.
|
java.lang.Boolean |
getGenerateApisWithSuspendFunctions()
Whether signatures of API interface methods should have
suspend modifier. |
java.lang.Boolean |
getGenerateApisWithThrowsException()
Whether signatures of API interface methods should have
throws Exception. |
java.lang.Boolean |
getGenerateBuilder()
Specifies whether generated model classes should have builder.
|
java.lang.Boolean |
getGenerateClient()
Specifies whether client-side classes should be generated for each query, mutation and subscription.
|
java.lang.String |
getGeneratedAnnotation()
Returns a qualified class name (with package) of the Generated annotation that will be added on top of every
generated class.
|
java.lang.Boolean |
getGenerateDataFetchingEnvironmentArgumentInApis()
If true, then graphql.schema.DataFetchingEnvironment env will be added as a last argument
to all methods of root type resolvers and field resolvers.
|
GeneratedLanguage |
getGeneratedLanguage()
Generate code with lang
|
java.lang.Boolean |
getGenerateEqualsAndHashCode()
Specifies whether generated model classes should have equals and hashCode methods defined.
|
java.lang.Boolean |
getGenerateExtensionFieldsResolvers()
Whether all fields in extensions (
extend type and extend interface) should be present
in Resolver interface instead of the type class itself. |
java.lang.Boolean |
getGenerateImmutableModels()
Specifies whether generated model classes should be immutable.
|
java.lang.Boolean |
getGenerateJacksonTypeIdResolver()
Specifies whether generated union interfaces should be annotated with a Jackson type id resolver generated in
model package.
|
java.lang.Boolean |
getGenerateModelsForRootTypes()
Specifies whether model classes should be generated for Query/Subscription/Mutation.
|
java.lang.Boolean |
getGenerateParameterizedFieldsResolvers()
If true, then generate separate `Resolver` interface for parametrized fields.
|
java.lang.Boolean |
getGenerateToString()
Specifies whether generated model classes should have toString method defined.
|
java.lang.String |
getModelNamePrefix()
Sets the prefix for GraphQL model classes (type, input, interface, enum, union).
|
java.lang.String |
getModelNameSuffix()
Sets the suffix for GraphQL model classes (type, input, interface, enum, union).
|
java.lang.String |
getModelPackageName()
Java package for generated model classes (type, input, interface, enum, union).
|
java.lang.String |
getModelValidationAnnotation()
Annotation for mandatory (NonNull) fields.
|
java.lang.String |
getMutationResolverParentInterface()
Interface that will be added as "extend" to all generated api Mutation interfaces.
|
java.lang.String |
getPackageName()
Java package for generated classes.
|
java.lang.String |
getParametrizedInputSuffix()
The suffix for `ParametrizedInput` classes.
|
java.util.Set<java.lang.String> |
getParametrizedResolverAnnotations()
Annotations that will be added to all parametrized resolver methods.
|
java.lang.String |
getQueryResolverParentInterface()
Interface that will be added as "extend" to all generated api Query interfaces.
|
RelayConfig |
getRelayConfig()
Relay-related configurations.
|
java.lang.String |
getRequestSuffix()
The suffix for `Request` classes.
|
java.util.Set<java.lang.String> |
getResolverArgumentAnnotations()
Annotations that will be added to all resolver arguments.
|
java.lang.String |
getResolverParentInterface()
Interface that will be added as "extend" to all generated TypeResolver interfaces.
|
java.lang.Integer |
getResponseProjectionMaxDepth()
Limit depth when `all$` invoke which has subProjections
|
java.lang.String |
getResponseProjectionSuffix()
The suffix for `ResponseProjection` classes.
|
java.lang.String |
getResponseSuffix()
The suffix for `Response` classes.
|
java.lang.String |
getSubscriptionResolverParentInterface()
Interface that will be added as "extend" to all generated api Subscription interfaces.
|
java.lang.String |
getSubscriptionReturnType()
Return type for subscription methods.
|
java.lang.String |
getTypeResolverPrefix()
Sets the prefix for GraphQL type resolver classes.
|
java.lang.String |
getTypeResolverSuffix()
Sets the suffix for GraphQL type resolver classes.
|
java.util.Set<java.lang.String> |
getTypesAsInterfaces()
Types that must generated as interfaces.
|
java.lang.String |
getUnknownFieldsPropertyName()
Specifies the name of the property to be included in api classes to support unknown
fields during serialization or deserialization
|
java.util.Set<java.lang.String> |
getUseObjectMapperForRequestSerialization()
Fields that require serialization using
ObjectMapper.writeValueAsString(Object) |
java.lang.Boolean |
getUseOptionalForNullableReturnTypes()
Specifies whether return types of generated API interface should be wrapped into
java.util.Optional |
java.lang.Boolean |
getUseWrapperForNullableInputTypes()
Specifies whether input types of generated input classes should be wrapped into
ArgumentValue. |
java.lang.Boolean |
isGenerateModelOpenClasses()
Specifies whether generate public model classes.
|
java.lang.Boolean |
isGenerateModelsWithPublicFields()
Specifies whether model classes should have public or private fields.
|
java.lang.Boolean |
isGenerateNoArgsConstructorOnly()
Specifies whether model classes should only have a no-args constructor.
|
java.lang.Boolean |
isGenerateSealedInterfaces()
Specifies whether generate sealed interfaces.
|
java.lang.Boolean |
isInitializeNullableTypes()
Specifies whether classes should be generated with constructors setting the
default value for nullable fields to null.
|
java.lang.Boolean |
isSupportUnknownFields() |
void |
putCustomTemplatesIfAbsent(java.lang.String from,
java.lang.String to)
Provide a path to a custom template for the specific FreeMarker template type (if absent).
|
void |
putCustomTypeMappingIfAbsent(java.lang.String from,
java.lang.String to)
Put custom type mapping if absent.
|
void |
setAddGeneratedAnnotation(java.lang.Boolean addGeneratedAnnotation) |
void |
setApiInterfaceStrategy(ApiInterfaceStrategy apiInterfaceStrategy) |
void |
setApiNamePrefix(java.lang.String apiNamePrefix) |
void |
setApiNamePrefixStrategy(ApiNamePrefixStrategy apiNamePrefixStrategy) |
void |
setApiNameSuffix(java.lang.String apiNameSuffix) |
void |
setApiPackageName(java.lang.String apiPackageName) |
void |
setApiReturnListType(java.lang.String apiReturnListType) |
void |
setApiReturnType(java.lang.String apiReturnType) |
void |
setApiRootInterfaceStrategy(ApiRootInterfaceStrategy apiRootInterfaceStrategy) |
void |
setCustomAnnotationsMapping(java.util.Map<java.lang.String,java.util.List<java.lang.String>> customAnnotationsMapping) |
void |
setCustomTemplates(java.util.Map<java.lang.String,java.lang.String> customTemplates) |
void |
setCustomTemplatesRoot(java.io.File customTemplatesRoot) |
void |
setCustomTypesMapping(java.util.Map<java.lang.String,java.lang.String> customTypesMapping) |
void |
setDirectiveAnnotationsMapping(java.util.Map<java.lang.String,java.util.List<java.lang.String>> directiveAnnotationsMapping) |
void |
setFieldsToExcludeFromGeneration(java.util.Set<java.lang.String> fieldsToExcludeFromGeneration) |
void |
setFieldsWithDataFetcherResult(java.util.Set<java.lang.String> fieldsWithDataFetcherResult) |
void |
setFieldsWithoutResolvers(java.util.Set<java.lang.String> fieldsWithoutResolvers) |
void |
setFieldsWithResolvers(java.util.Set<java.lang.String> fieldsWithResolvers) |
void |
setGenerateAllMethodInProjection(java.lang.Boolean generateAllMethodInProjection) |
void |
setGenerateApis(java.lang.Boolean generateApis) |
void |
setGenerateApisWithSuspendFunctions(java.lang.Boolean generateApisWithSuspendFunctions) |
void |
setGenerateApisWithThrowsException(java.lang.Boolean generateApisWithThrowsException) |
void |
setGenerateBuilder(java.lang.Boolean generateBuilder) |
void |
setGenerateClient(java.lang.Boolean generateClient) |
void |
setGeneratedAnnotation(java.lang.String generatedAnnotation) |
void |
setGenerateDataFetchingEnvironmentArgumentInApis(java.lang.Boolean generateDataFetchingEnvironmentArgumentInApis) |
void |
setGeneratedLanguage(GeneratedLanguage generatedLanguage) |
void |
setGenerateEqualsAndHashCode(java.lang.Boolean generateEqualsAndHashCode) |
void |
setGenerateExtensionFieldsResolvers(java.lang.Boolean generateExtensionFieldsResolvers) |
void |
setGenerateImmutableModels(java.lang.Boolean generateImmutableModels) |
void |
setGenerateJacksonTypeIdResolver(java.lang.Boolean generateJacksonTypeIdResolver) |
void |
setGenerateModelOpenClasses(boolean generateModelOpenClasses) |
void |
setGenerateModelsForRootTypes(java.lang.Boolean generateModelsForRootTypes) |
void |
setGenerateModelsWithPublicFields(java.lang.Boolean generateModelsWithPublicFields) |
void |
setGenerateNoArgsConstructorOnly(java.lang.Boolean generateNoArgsConstructorOnly) |
void |
setGenerateParameterizedFieldsResolvers(java.lang.Boolean generateParameterizedFieldsResolvers) |
void |
setGenerateSealedInterfaces(boolean generateSealedInterfaces) |
void |
setGenerateToString(java.lang.Boolean generateToString) |
void |
setInitializeNullableTypes(boolean initializeNullableTypes) |
void |
setModelNamePrefix(java.lang.String modelNamePrefix) |
void |
setModelNameSuffix(java.lang.String modelNameSuffix) |
void |
setModelPackageName(java.lang.String modelPackageName) |
void |
setModelValidationAnnotation(java.lang.String modelValidationAnnotation) |
void |
setMutationResolverParentInterface(java.lang.String mutationResolverParentInterface) |
void |
setPackageName(java.lang.String packageName) |
void |
setParametrizedInputSuffix(java.lang.String parametrizedInputSuffix) |
void |
setParametrizedResolverAnnotations(java.util.Set<java.lang.String> parametrizedResolverAnnotations) |
void |
setQueryResolverParentInterface(java.lang.String queryResolverParentInterface) |
void |
setRelayConfig(RelayConfig relayConfig) |
void |
setRequestSuffix(java.lang.String requestSuffix) |
void |
setResolverArgumentAnnotations(java.util.Set<java.lang.String> resolverArgumentAnnotations) |
void |
setResolverParentInterface(java.lang.String resolverParentInterface) |
void |
setResponseProjectionMaxDepth(java.lang.Integer responseProjectionMaxDepth) |
void |
setResponseProjectionSuffix(java.lang.String responseProjectionSuffix) |
void |
setResponseSuffix(java.lang.String responseSuffix) |
void |
setSubscriptionResolverParentInterface(java.lang.String subscriptionResolverParentInterface) |
void |
setSubscriptionReturnType(java.lang.String subscriptionReturnType) |
void |
setSupportUnknownFields(java.lang.Boolean supportUnknownFields) |
void |
setTypeResolverPrefix(java.lang.String typeResolverPrefix) |
void |
setTypeResolverSuffix(java.lang.String typeResolverSuffix) |
void |
setTypesAsInterfaces(java.util.Set<java.lang.String> typesAsInterfaces) |
void |
setUnknownFieldsPropertyName(java.lang.String unknownFieldsPropertyName) |
void |
setUseObjectMapperForRequestSerialization(java.util.Set<java.lang.String> useObjectMapperForRequestSerialization) |
void |
setUseOptionalForNullableReturnTypes(java.lang.Boolean useOptionalForNullableReturnTypes) |
void |
setUseWrapperForNullableInputTypes(java.lang.Boolean useWrapperForNullableInputTypes) |
public void combine(MappingConfig source)
Combinablecombine in interface Combinable<MappingConfig>source - the sourcepublic void putCustomTypeMappingIfAbsent(java.lang.String from,
java.lang.String to)
from - the fromto - the topublic java.util.Map<java.lang.String,java.lang.String> getCustomTypesMapping()
GraphQLCodegenConfigurationSupports:
E.g.:
DateTime --- StringPrice.amount --- java.math.BigDecimalgetCustomTypesMapping in interface GraphQLCodegenConfigurationpublic void setCustomTypesMapping(java.util.Map<java.lang.String,java.lang.String> customTypesMapping)
public java.io.File getCustomTemplatesRoot()
GraphQLCodegenConfigurationgetCustomTemplatesRoot in interface GraphQLCodegenConfigurationpublic void setCustomTemplatesRoot(java.io.File customTemplatesRoot)
public java.util.Map<java.lang.String,java.lang.String> getCustomTemplates()
GraphQLCodegenConfigurationgetCustomTemplates in interface GraphQLCodegenConfigurationpublic void setCustomTemplates(java.util.Map<java.lang.String,java.lang.String> customTemplates)
public void putCustomTemplatesIfAbsent(java.lang.String from,
java.lang.String to)
from - the fromto - the topublic java.util.Map<java.lang.String,java.util.List<java.lang.String>> getCustomAnnotationsMapping()
GraphQLCodegenConfigurationSupports:
E.g.:
EpochMillis --- @com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.example.json
.EpochMillisScalarDeserializer.class)
getCustomAnnotationsMapping in interface GraphQLCodegenConfigurationpublic void setCustomAnnotationsMapping(java.util.Map<java.lang.String,java.util.List<java.lang.String>> customAnnotationsMapping)
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> getDirectiveAnnotationsMapping()
GraphQLCodegenConfigurationDirective fields can be used in annotations via: {{directiveFieldName}}
Example:
schema: directive @auth (roles: [String])
directiveAnnotationsMapping:
auth --- @org.springframework.security.access.annotation.Secured({{roles}})
getDirectiveAnnotationsMapping in interface GraphQLCodegenConfigurationpublic void setDirectiveAnnotationsMapping(java.util.Map<java.lang.String,java.util.List<java.lang.String>> directiveAnnotationsMapping)
public java.lang.String getPackageName()
GraphQLCodegenConfigurationgetPackageName in interface GraphQLCodegenConfigurationpublic void setPackageName(java.lang.String packageName)
public java.lang.String getApiPackageName()
GraphQLCodegenConfigurationgetApiPackageName in interface GraphQLCodegenConfigurationpublic void setApiPackageName(java.lang.String apiPackageName)
public java.lang.String getModelPackageName()
GraphQLCodegenConfigurationgetModelPackageName in interface GraphQLCodegenConfigurationpublic void setModelPackageName(java.lang.String modelPackageName)
public java.lang.String getModelNamePrefix()
GraphQLCodegenConfigurationgetModelNamePrefix in interface GraphQLCodegenConfigurationpublic void setModelNamePrefix(java.lang.String modelNamePrefix)
public java.lang.String getModelNameSuffix()
GraphQLCodegenConfigurationgetModelNameSuffix in interface GraphQLCodegenConfigurationpublic void setModelNameSuffix(java.lang.String modelNameSuffix)
public java.lang.String getApiNamePrefix()
GraphQLCodegenConfigurationgetApiNamePrefix in interface GraphQLCodegenConfigurationpublic void setApiNamePrefix(java.lang.String apiNamePrefix)
public java.lang.String getApiNameSuffix()
GraphQLCodegenConfigurationgetApiNameSuffix in interface GraphQLCodegenConfigurationpublic void setApiNameSuffix(java.lang.String apiNameSuffix)
public java.lang.String getTypeResolverPrefix()
GraphQLCodegenConfigurationgetTypeResolverPrefix in interface GraphQLCodegenConfigurationpublic void setTypeResolverPrefix(java.lang.String typeResolverPrefix)
public java.lang.String getTypeResolverSuffix()
GraphQLCodegenConfigurationgetTypeResolverSuffix in interface GraphQLCodegenConfigurationpublic void setTypeResolverSuffix(java.lang.String typeResolverSuffix)
public ApiRootInterfaceStrategy getApiRootInterfaceStrategy()
GraphQLCodegenConfigurationgetApiRootInterfaceStrategy in interface GraphQLCodegenConfigurationpublic void setApiRootInterfaceStrategy(ApiRootInterfaceStrategy apiRootInterfaceStrategy)
public ApiInterfaceStrategy getApiInterfaceStrategy()
GraphQLCodegenConfigurationgetApiInterfaceStrategy in interface GraphQLCodegenConfigurationpublic void setApiInterfaceStrategy(ApiInterfaceStrategy apiInterfaceStrategy)
public ApiNamePrefixStrategy getApiNamePrefixStrategy()
GraphQLCodegenConfigurationgetApiNamePrefixStrategy in interface GraphQLCodegenConfigurationpublic void setApiNamePrefixStrategy(ApiNamePrefixStrategy apiNamePrefixStrategy)
public java.lang.String getModelValidationAnnotation()
GraphQLCodegenConfigurationgetModelValidationAnnotation in interface GraphQLCodegenConfigurationpublic void setModelValidationAnnotation(java.lang.String modelValidationAnnotation)
public java.lang.String getApiReturnType()
GraphQLCodegenConfigurationgetApiReturnType in interface GraphQLCodegenConfigurationpublic void setApiReturnType(java.lang.String apiReturnType)
public java.lang.String getApiReturnListType()
GraphQLCodegenConfigurationgetApiReturnListType in interface GraphQLCodegenConfigurationpublic void setApiReturnListType(java.lang.String apiReturnListType)
public java.lang.String getSubscriptionReturnType()
GraphQLCodegenConfigurationgetSubscriptionReturnType in interface GraphQLCodegenConfigurationpublic void setSubscriptionReturnType(java.lang.String subscriptionReturnType)
public java.lang.Boolean getGenerateApis()
GraphQLCodegenConfigurationgetGenerateApis in interface GraphQLCodegenConfigurationpublic void setGenerateApis(java.lang.Boolean generateApis)
public java.lang.Boolean getGenerateBuilder()
GraphQLCodegenConfigurationgetGenerateBuilder in interface GraphQLCodegenConfigurationpublic void setGenerateBuilder(java.lang.Boolean generateBuilder)
public java.lang.Boolean getGenerateEqualsAndHashCode()
GraphQLCodegenConfigurationgetGenerateEqualsAndHashCode in interface GraphQLCodegenConfigurationpublic void setGenerateEqualsAndHashCode(java.lang.Boolean generateEqualsAndHashCode)
public java.lang.Boolean getGenerateToString()
GraphQLCodegenConfigurationgetGenerateToString in interface GraphQLCodegenConfigurationpublic void setGenerateToString(java.lang.Boolean generateToString)
public java.lang.Boolean getGenerateImmutableModels()
GraphQLCodegenConfigurationgetGenerateImmutableModels in interface GraphQLCodegenConfigurationpublic void setGenerateImmutableModels(java.lang.Boolean generateImmutableModels)
public java.lang.Boolean getGenerateParameterizedFieldsResolvers()
GraphQLCodegenConfigurationgetGenerateParameterizedFieldsResolvers in interface GraphQLCodegenConfigurationpublic void setGenerateParameterizedFieldsResolvers(java.lang.Boolean generateParameterizedFieldsResolvers)
public java.lang.Boolean getGenerateExtensionFieldsResolvers()
GraphQLCodegenConfigurationextend type and extend interface) should be present
in Resolver interface instead of the type class itself.getGenerateExtensionFieldsResolvers in interface GraphQLCodegenConfigurationextend type and extend interface)
should be present in Resolver interface instead of the type class itself.public void setGenerateExtensionFieldsResolvers(java.lang.Boolean generateExtensionFieldsResolvers)
public java.lang.Boolean getGenerateDataFetchingEnvironmentArgumentInApis()
GraphQLCodegenConfigurationgetGenerateDataFetchingEnvironmentArgumentInApis in interface GraphQLCodegenConfigurationpublic void setGenerateDataFetchingEnvironmentArgumentInApis(java.lang.Boolean generateDataFetchingEnvironmentArgumentInApis)
public java.lang.Boolean getGenerateApisWithThrowsException()
GraphQLCodegenConfigurationthrows Exception.getGenerateApisWithThrowsException in interface GraphQLCodegenConfigurationthrows Exception.public void setGenerateApisWithThrowsException(java.lang.Boolean generateApisWithThrowsException)
public java.lang.Boolean getGenerateApisWithSuspendFunctions()
GraphQLCodegenConfigurationsuspend modifier.getGenerateApisWithSuspendFunctions in interface GraphQLCodegenConfigurationsuspend modifier.public void setGenerateApisWithSuspendFunctions(java.lang.Boolean generateApisWithSuspendFunctions)
public java.lang.Boolean getAddGeneratedAnnotation()
GraphQLCodegenConfigurationgetAddGeneratedAnnotation in interface GraphQLCodegenConfigurationpublic void setAddGeneratedAnnotation(java.lang.Boolean addGeneratedAnnotation)
public java.lang.Boolean getGenerateJacksonTypeIdResolver()
GraphQLCodegenConfigurationgetGenerateJacksonTypeIdResolver in interface GraphQLCodegenConfigurationpublic void setGenerateJacksonTypeIdResolver(java.lang.Boolean generateJacksonTypeIdResolver)
public RelayConfig getRelayConfig()
GraphQLCodegenConfigurationgetRelayConfig in interface GraphQLCodegenConfigurationpublic void setRelayConfig(RelayConfig relayConfig)
public java.lang.Boolean getGenerateModelsForRootTypes()
GraphQLCodegenConfigurationgetGenerateModelsForRootTypes in interface GraphQLCodegenConfigurationpublic void setGenerateModelsForRootTypes(java.lang.Boolean generateModelsForRootTypes)
public java.lang.Boolean getUseOptionalForNullableReturnTypes()
GraphQLCodegenConfigurationjava.util.OptionalgetUseOptionalForNullableReturnTypes in interface GraphQLCodegenConfigurationjava.util.Optionalpublic void setUseOptionalForNullableReturnTypes(java.lang.Boolean useOptionalForNullableReturnTypes)
public java.lang.Boolean getUseWrapperForNullableInputTypes()
GraphQLCodegenConfigurationArgumentValue.getUseWrapperForNullableInputTypes in interface GraphQLCodegenConfigurationArgumentValuepublic void setUseWrapperForNullableInputTypes(java.lang.Boolean useWrapperForNullableInputTypes)
public java.util.Set<java.lang.String> getFieldsWithResolvers()
GraphQLCodegenConfigurationValues should be defined here in format: TypeName, TypeName.fieldName, @directive
If just type is specified, then all fields of this type will have resolvers.
E.g.:
PersonPerson.friends@customResolvergetFieldsWithResolvers in interface GraphQLCodegenConfigurationpublic void setFieldsWithResolvers(java.util.Set<java.lang.String> fieldsWithResolvers)
public java.util.Set<java.lang.String> getFieldsWithoutResolvers()
GraphQLCodegenConfigurationValues should be defined here in format: TypeName, TypeName.fieldName, @directive
If just type is specified, then all fields of this type will NOT have resolvers.
Can be used in conjunction with generateExtensionFieldsResolvers
E.g.:
PersonPerson.friends@customResolvergetFieldsWithoutResolvers in interface GraphQLCodegenConfigurationpublic void setFieldsWithoutResolvers(java.util.Set<java.lang.String> fieldsWithoutResolvers)
public java.util.Set<java.lang.String> getFieldsToExcludeFromGeneration()
GraphQLCodegenConfigurationValues should be defined here in format: TypeName.fieldName
E.g.:
Person.friendsgetFieldsToExcludeFromGeneration in interface GraphQLCodegenConfigurationpublic void setFieldsToExcludeFromGeneration(java.util.Set<java.lang.String> fieldsToExcludeFromGeneration)
public java.util.Set<java.lang.String> getFieldsWithDataFetcherResult()
GraphQLCodegenConfigurationValues should be defined here in format: TypeName, TypeName.fieldName, @directive
E.g.:
@dataFetcherResultgetFieldsWithDataFetcherResult in interface GraphQLCodegenConfigurationpublic void setFieldsWithDataFetcherResult(java.util.Set<java.lang.String> fieldsWithDataFetcherResult)
public java.lang.String getQueryResolverParentInterface()
GraphQLCodegenConfigurationgetQueryResolverParentInterface in interface GraphQLCodegenConfigurationpublic void setQueryResolverParentInterface(java.lang.String queryResolverParentInterface)
public java.lang.String getMutationResolverParentInterface()
GraphQLCodegenConfigurationgetMutationResolverParentInterface in interface GraphQLCodegenConfigurationpublic void setMutationResolverParentInterface(java.lang.String mutationResolverParentInterface)
public java.lang.String getSubscriptionResolverParentInterface()
GraphQLCodegenConfigurationgetSubscriptionResolverParentInterface in interface GraphQLCodegenConfigurationpublic void setSubscriptionResolverParentInterface(java.lang.String subscriptionResolverParentInterface)
public java.lang.String getResolverParentInterface()
GraphQLCodegenConfigurationgetResolverParentInterface in interface GraphQLCodegenConfigurationpublic void setResolverParentInterface(java.lang.String resolverParentInterface)
public java.lang.Boolean getGenerateClient()
GraphQLCodegenConfigurationgetGenerateClient in interface GraphQLCodegenConfigurationpublic void setGenerateClient(java.lang.Boolean generateClient)
public java.lang.String getRequestSuffix()
GraphQLCodegenConfigurationgetRequestSuffix in interface GraphQLCodegenConfigurationpublic void setRequestSuffix(java.lang.String requestSuffix)
public java.lang.String getResponseSuffix()
GraphQLCodegenConfigurationgetResponseSuffix in interface GraphQLCodegenConfigurationpublic void setResponseSuffix(java.lang.String responseSuffix)
public java.lang.String getResponseProjectionSuffix()
GraphQLCodegenConfigurationgetResponseProjectionSuffix in interface GraphQLCodegenConfigurationpublic void setResponseProjectionSuffix(java.lang.String responseProjectionSuffix)
public java.lang.String getParametrizedInputSuffix()
GraphQLCodegenConfigurationgetParametrizedInputSuffix in interface GraphQLCodegenConfigurationpublic void setParametrizedInputSuffix(java.lang.String parametrizedInputSuffix)
public java.lang.Boolean getGenerateAllMethodInProjection()
GraphQLCodegenConfigurationgetGenerateAllMethodInProjection in interface GraphQLCodegenConfigurationpublic void setGenerateAllMethodInProjection(java.lang.Boolean generateAllMethodInProjection)
public java.lang.Integer getResponseProjectionMaxDepth()
GraphQLCodegenConfigurationgetResponseProjectionMaxDepth in interface GraphQLCodegenConfigurationpublic void setResponseProjectionMaxDepth(java.lang.Integer responseProjectionMaxDepth)
public java.util.Set<java.lang.String> getUseObjectMapperForRequestSerialization()
GraphQLCodegenConfigurationObjectMapper.writeValueAsString(Object)
Values should be defined here in format: GraphqlObjectName.fieldName or GraphqlTypeName
If just type is specified, then all fields of this type will be serialized using ObjectMapper.
E.g.:
Person.createdDateTimeZonedDateTimegetUseObjectMapperForRequestSerialization in interface GraphQLCodegenConfigurationObjectMapper.writeValueAsString(Object)public void setUseObjectMapperForRequestSerialization(java.util.Set<java.lang.String> useObjectMapperForRequestSerialization)
public java.util.Set<java.lang.String> getResolverArgumentAnnotations()
GraphQLCodegenConfigurationE.g.:
@org.springframework.graphql.data.method.annotation.ArgumentgetResolverArgumentAnnotations in interface GraphQLCodegenConfigurationpublic void setResolverArgumentAnnotations(java.util.Set<java.lang.String> resolverArgumentAnnotations)
public java.util.Set<java.lang.String> getParametrizedResolverAnnotations()
GraphQLCodegenConfigurationE.g.:
@org.springframework.graphql.data.method.annotation.ArgumentgetParametrizedResolverAnnotations in interface GraphQLCodegenConfigurationpublic void setParametrizedResolverAnnotations(java.util.Set<java.lang.String> parametrizedResolverAnnotations)
public java.util.Set<java.lang.String> getTypesAsInterfaces()
GraphQLCodegenConfigurationValues should be defined here in format: TypeName, @directive
E.g.:
Person@asInterfacegetTypesAsInterfaces in interface GraphQLCodegenConfigurationpublic void setTypesAsInterfaces(java.util.Set<java.lang.String> typesAsInterfaces)
public java.lang.String getUnknownFieldsPropertyName()
GraphQLCodegenConfigurationgetUnknownFieldsPropertyName in interface GraphQLCodegenConfigurationpublic void setUnknownFieldsPropertyName(java.lang.String unknownFieldsPropertyName)
public java.lang.String getGeneratedAnnotation()
GraphQLCodegenConfigurationgetGeneratedAnnotation in interface GraphQLCodegenConfigurationpublic void setGeneratedAnnotation(java.lang.String generatedAnnotation)
public java.lang.Boolean isSupportUnknownFields()
isSupportUnknownFields in interface GraphQLCodegenConfigurationpublic void setSupportUnknownFields(java.lang.Boolean supportUnknownFields)
public GeneratedLanguage getGeneratedLanguage()
GraphQLCodegenConfigurationgetGeneratedLanguage in interface GraphQLCodegenConfigurationpublic void setGeneratedLanguage(GeneratedLanguage generatedLanguage)
public java.lang.Boolean isGenerateModelOpenClasses()
GraphQLCodegenConfigurationisGenerateModelOpenClasses in interface GraphQLCodegenConfigurationpublic void setGenerateModelOpenClasses(boolean generateModelOpenClasses)
public java.lang.Boolean isInitializeNullableTypes()
GraphQLCodegenConfigurationisInitializeNullableTypes in interface GraphQLCodegenConfigurationpublic void setInitializeNullableTypes(boolean initializeNullableTypes)
public java.lang.Boolean isGenerateSealedInterfaces()
GraphQLCodegenConfigurationisGenerateSealedInterfaces in interface GraphQLCodegenConfigurationpublic void setGenerateSealedInterfaces(boolean generateSealedInterfaces)
public java.lang.Boolean isGenerateNoArgsConstructorOnly()
GraphQLCodegenConfigurationisGenerateNoArgsConstructorOnly in interface GraphQLCodegenConfigurationpublic void setGenerateNoArgsConstructorOnly(java.lang.Boolean generateNoArgsConstructorOnly)
public java.lang.Boolean isGenerateModelsWithPublicFields()
GraphQLCodegenConfigurationisGenerateModelsWithPublicFields in interface GraphQLCodegenConfigurationpublic void setGenerateModelsWithPublicFields(java.lang.Boolean generateModelsWithPublicFields)