Class InputDefinitionToDataModelMapper
java.lang.Object
io.github.besi97.graphql.codegen.mapper.InputDefinitionToDataModelMapper
- All Implemented Interfaces:
UnknownFieldsSupport
Map input type definition to a Freemarker data model
-
Constructor Summary
ConstructorsConstructorDescriptionInputDefinitionToDataModelMapper(MapperFactory mapperFactory, InputValueDefinitionToParameterMapper inputValueDefToParamMapper) -
Method Summary
Modifier and TypeMethodDescriptionmap(MappingContext mappingContext, ExtendedInputObjectTypeDefinition definition) Map input type definition to a Freemarker data modelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.besi97.graphql.codegen.mapper.UnknownFieldsSupport
createUnknownFields
-
Constructor Details
-
InputDefinitionToDataModelMapper
public InputDefinitionToDataModelMapper(MapperFactory mapperFactory, InputValueDefinitionToParameterMapper inputValueDefToParamMapper)
-
-
Method Details
-
map
public Map<String,Object> map(MappingContext mappingContext, ExtendedInputObjectTypeDefinition definition) Map input type definition to a Freemarker data model- Parameters:
mappingContext- Global mapping contextdefinition- Definition of input type including base definition and its extensions- Returns:
- Freemarker data model of the GraphQL type
-