Package graphql.schema
Interface TypeResolver
-
- All Known Implementing Classes:
TypeResolverProxy
@PublicSpi public interface TypeResolver
This is called during type resolution to work out what concreteGraphQLObjectType
should be used dynamically during runtime forGraphQLInterfaceType
s andGraphQLUnionType
s
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GraphQLObjectType
getType(TypeResolutionEnvironment env)
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
-
-
-
Method Detail
-
getType
GraphQLObjectType getType(TypeResolutionEnvironment env)
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
-
-