Package graphql.schema
Interface TypeResolver
-
- All Known Implementing Classes:
TypeResolverProxy
@PublicSpi public interface TypeResolver
This is called during type resolution to work out what concreteGraphQLObjectTypeshould be used dynamically during runtime forGraphQLInterfaceTypes andGraphQLUnionTypes
-
-
Method Summary
All Methods Instance Methods Abstract 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 andGraphQLUnionTypes
-
-
-
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 forGraphQLInterfaceTypes andGraphQLUnionTypes- Parameters:
env- the runtime environment- Returns:
- a graphql object type to use based on examining the environment
-
-