public interface TypeMapper
TypeMapper is used to map annotated Java types to a GraphQL input or output types, modeled by
GraphQLOutputType and GraphQLInputType respectively.
Method parameter types are mapped to GraphQL input types, while the return types are mapped to GraphQL output types.| Modifier and Type | Method and Description |
|---|---|
boolean |
supports(AnnotatedType type) |
graphql.schema.GraphQLInputType |
toGraphQLInputType(AnnotatedType javaType,
OperationMapper operationMapper,
Set<Class<? extends TypeMapper>> mappersToSkip,
BuildContext buildContext) |
graphql.schema.GraphQLOutputType |
toGraphQLType(AnnotatedType javaType,
OperationMapper operationMapper,
Set<Class<? extends TypeMapper>> mappersToSkip,
BuildContext buildContext) |
graphql.schema.GraphQLOutputType toGraphQLType(AnnotatedType javaType, OperationMapper operationMapper, Set<Class<? extends TypeMapper>> mappersToSkip, BuildContext buildContext)
graphql.schema.GraphQLInputType toGraphQLInputType(AnnotatedType javaType, OperationMapper operationMapper, Set<Class<? extends TypeMapper>> mappersToSkip, BuildContext buildContext)
boolean supports(AnnotatedType type)
Copyright © 2016–2018. All rights reserved.