Package io.jmix.graphql.schema.scalar
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 Summary
ConstructorDescriptionCustomScalarTypeMapper
(Class scalarSupportClass, graphql.schema.GraphQLScalarType scalarType) -
Method Summary
Modifier and TypeMethodDescriptionboolean
supports
(AnnotatedElement element, AnnotatedType type) graphql.schema.GraphQLInputType
toGraphQLInputType
(AnnotatedType javaType, Set<Class<? extends io.leangen.graphql.generator.mapping.TypeMapper>> mappersToSkip, io.leangen.graphql.generator.mapping.TypeMappingEnvironment env) graphql.schema.GraphQLOutputType
toGraphQLType
(AnnotatedType javaType, Set<Class<? extends io.leangen.graphql.generator.mapping.TypeMapper>> mappersToSkip, io.leangen.graphql.generator.mapping.TypeMappingEnvironment env)
-
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 interfaceio.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 interfaceio.leangen.graphql.generator.mapping.TypeMapper
-
supports
- Specified by:
supports
in interfaceio.leangen.graphql.generator.mapping.TypeMapper
-