Class CustomScalarTypeMapper

java.lang.Object
io.jmix.graphql.schema.scalar.CustomScalarTypeMapper
All Implemented Interfaces:
io.leangen.graphql.generator.mapping.TypeMapper

public class CustomScalarTypeMapper extends Object implements io.leangen.graphql.generator.mapping.TypeMapper
  • Constructor Details

    • CustomScalarTypeMapper

      public CustomScalarTypeMapper(Class scalarSupportClass, graphql.schema.GraphQLScalarType scalarType)
  • Method Details

    • toGraphQLType

      public graphql.schema.GraphQLOutputType toGraphQLType(AnnotatedType javaType, Set<Class<? extends io.leangen.graphql.generator.mapping.TypeMapper>> mappersToSkip, io.leangen.graphql.generator.mapping.TypeMappingEnvironment env)
      Specified by:
      toGraphQLType in interface io.leangen.graphql.generator.mapping.TypeMapper
    • toGraphQLInputType

      public graphql.schema.GraphQLInputType toGraphQLInputType(AnnotatedType javaType, Set<Class<? extends io.leangen.graphql.generator.mapping.TypeMapper>> mappersToSkip, io.leangen.graphql.generator.mapping.TypeMappingEnvironment env)
      Specified by:
      toGraphQLInputType in interface io.leangen.graphql.generator.mapping.TypeMapper
    • supports

      public boolean supports(AnnotatedElement element, AnnotatedType type)
      Specified by:
      supports in interface io.leangen.graphql.generator.mapping.TypeMapper