Package graphql.schema
Interface TypeResolver
- All Known Implementing Classes:
TypeResolverProxy
This is called during type resolution to work out what concrete
GraphQLObjectType
should be used
dynamically during runtime for GraphQLInterfaceType
s and GraphQLUnionType
s-
Method Summary
Modifier and TypeMethodDescriptionThis call back is invoked passing in a context object to allow you to know what type to use dynamically during runtime forGraphQLInterfaceType
s andGraphQLUnionType
s
-
Method Details
-
getType
This call back is invoked passing in a context object to allow you to know what type to use dynamically during runtime forGraphQLInterfaceType
s andGraphQLUnionType
s- Parameters:
env
- the runtime environment- Returns:
- a graphql object type to use based on examining the environment
-