Package graphql.schema
Class TypeResolverProxy
- java.lang.Object
-
- graphql.schema.TypeResolverProxy
-
- All Implemented Interfaces:
TypeResolver
public class TypeResolverProxy extends java.lang.Object implements TypeResolver
-
-
Constructor Summary
Constructors Constructor Description TypeResolverProxy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphQLObjectTypegetType(TypeResolutionEnvironment env)This call back is invoked passing in a context object to allow you to know what type to use dynamically during runtime forGraphQLInterfaceTypes andGraphQLUnionTypesTypeResolvergetTypeResolver()voidsetTypeResolver(TypeResolver typeResolver)
-
-
-
Method Detail
-
getTypeResolver
public TypeResolver getTypeResolver()
-
setTypeResolver
public void setTypeResolver(TypeResolver typeResolver)
-
getType
public GraphQLObjectType getType(TypeResolutionEnvironment env)
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
-
-