public interface TypeMapper
TypeMapper is used to map annotated Java types to a GraphQL input or output types, modeled by
GraphQLOutputType and GraphQLInputType respectively.
Types of method parameters 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,
Set<Type> abstractTypes,
OperationMapper operationMapper,
BuildContext buildContext) |
graphql.schema.GraphQLOutputType |
toGraphQLType(AnnotatedType javaType,
Set<Type> abstractTypes,
OperationMapper operationMapper,
BuildContext buildContext) |
graphql.schema.GraphQLOutputType toGraphQLType(AnnotatedType javaType, Set<Type> abstractTypes, OperationMapper operationMapper, BuildContext buildContext)
graphql.schema.GraphQLInputType toGraphQLInputType(AnnotatedType javaType, Set<Type> abstractTypes, OperationMapper operationMapper, BuildContext buildContext)
boolean supports(AnnotatedType type)
Copyright © 2016–2017. All rights reserved.