Package graphql.schema
Class TypeResolverProxy
java.lang.Object
graphql.schema.TypeResolverProxy
- All Implemented Interfaces:
TypeResolver
-
Constructor Summary
Constructors -
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
svoid
setTypeResolver
(TypeResolver typeResolver)
-
Constructor Details
-
TypeResolverProxy
public TypeResolverProxy()
-
-
Method Details
-
getTypeResolver
-
setTypeResolver
-
getType
Description copied from interface:TypeResolver
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- Specified by:
getType
in interfaceTypeResolver
- Parameters:
env
- the runtime environment- Returns:
- a graphql object type to use based on examining the environment
-