Interface TypeMapper
-
- All Known Implementing Classes:
AbstractSimpleTypeAdapter,AbstractTypeAdapter,AbstractTypeSubstitutingMapper,AnnotationMapper,ArrayAdapter,CachingMapper,CompletableFutureAdapter,DataFetcherResultMapper,EnumMapper,EnumMapToObjectTypeAdapter,GsonArrayAdapter,GsonScalarTypeMapper,IdAdapter,InterfaceMapper,IterableAdapter,JacksonObjectScalarMapper,JacksonScalarTypeMapper,JsonArrayAdapter,JsonNodeAdapter,ListMapper,MapToListTypeAdapter,NonNullMapper,ObjectScalarMapper,ObjectTypeMapper,OptionalAdapter,OptionalDoubleAdapter,OptionalIntAdapter,OptionalLongAdapter,PageMapper,PublisherAdapter,ScalarMapper,StreamToCollectionTypeAdapter,UnionInlineMapper,UnionMapper,UnionTypeMapper,VoidToBooleanTypeAdapter
public interface TypeMapperATypeMapperis used to map annotated Java types to a GraphQL input or output types, modeled byGraphQLOutputTypeandGraphQLInputTyperespectively. Method parameter types are mapped to GraphQL input types, while the return types are mapped to GraphQL output types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleansupports(AnnotatedElement element, AnnotatedType type)graphql.schema.GraphQLInputTypetoGraphQLInputType(AnnotatedType javaType, Set<Class<? extends TypeMapper>> mappersToSkip, TypeMappingEnvironment env)graphql.schema.GraphQLOutputTypetoGraphQLType(AnnotatedType javaType, Set<Class<? extends TypeMapper>> mappersToSkip, TypeMappingEnvironment env)
-
-
-
Method Detail
-
toGraphQLType
graphql.schema.GraphQLOutputType toGraphQLType(AnnotatedType javaType, Set<Class<? extends TypeMapper>> mappersToSkip, TypeMappingEnvironment env)
-
toGraphQLInputType
graphql.schema.GraphQLInputType toGraphQLInputType(AnnotatedType javaType, Set<Class<? extends TypeMapper>> mappersToSkip, TypeMappingEnvironment env)
-
supports
boolean supports(AnnotatedElement element, AnnotatedType type)
-
-