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 GraphQLInterfaceTypes and GraphQLUnionTypes-
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 forGraphQLInterfaceTypes andGraphQLUnionTypes
-
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 forGraphQLInterfaceTypes andGraphQLUnionTypes- Parameters:
env- the runtime environment- Returns:
- a graphql object type to use based on examining the environment
-