Class InputValueDefinitionToParameterMapper

java.lang.Object
io.github.besi97.graphql.codegen.mapper.InputValueDefinitionToParameterMapper

public class InputValueDefinitionToParameterMapper extends Object
Mapper from GraphQL's InputValueDefinition to a Freemarker-understandable format
  • Constructor Details

    • InputValueDefinitionToParameterMapper

      public InputValueDefinitionToParameterMapper(MapperFactory mapperFactory)
  • Method Details

    • map

      public List<ParameterDefinition> map(MappingContext mappingContext, List<graphql.language.InputValueDefinition> valueDefinitions, String parentTypeName)
      Map input value definition to a Freemarker-understandable data model type
      Parameters:
      mappingContext - Global mapping context
      valueDefinitions - List of GraphQL value definitions
      parentTypeName - Name of the parent GraphQL type
      Returns:
      Freemarker data model of the GraphQL input value definition