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 forGraphQLInterfaceTypes andGraphQLUnionTypesvoidsetTypeResolver(TypeResolver typeResolver)
-
Constructor Details
-
TypeResolverProxy
public TypeResolverProxy()
-
-
Method Details
-
getTypeResolver
-
setTypeResolver
-
getType
Description copied from interface:TypeResolverThis call back is invoked passing in a context object to allow you to know what type to use dynamically during runtime forGraphQLInterfaceTypes andGraphQLUnionTypes- Specified by:
getTypein interfaceTypeResolver- Parameters:
env- the runtime environment- Returns:
- a graphql object type to use based on examining the environment
-