public class SchemaGeneratorDirectiveHelper
extends java.lang.Object
SchemaDirectiveWiring
implementations
to be invoked during schema generation.Constructor and Description |
---|
SchemaGeneratorDirectiveHelper() |
Modifier and Type | Method and Description |
---|---|
GraphQLEnumType |
onEnum(GraphQLEnumType enumType,
graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params) |
GraphQLInputObjectType |
onInputObjectType(GraphQLInputObjectType inputObjectType,
graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params) |
GraphQLInterfaceType |
onInterface(GraphQLInterfaceType interfaceType,
graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params) |
GraphQLObjectType |
onObject(GraphQLObjectType objectType,
graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params) |
GraphQLScalarType |
onScalar(GraphQLScalarType element,
graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params) |
GraphQLUnionType |
onUnion(GraphQLUnionType element,
graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params) |
static <T extends GraphQLDirectiveContainer> |
schemaDirectiveWiringIsRequired(T directiveContainer,
TypeDefinitionRegistry typeRegistry,
RuntimeWiring runtimeWiring)
This will return true if something in the RuntimeWiring requires a
SchemaDirectiveWiring . |
public static <T extends GraphQLDirectiveContainer> boolean schemaDirectiveWiringIsRequired(T directiveContainer, TypeDefinitionRegistry typeRegistry, RuntimeWiring runtimeWiring)
SchemaDirectiveWiring
. This is to allow
a shortcut to decide that we don't need ANY SchemaDirectiveWiring post processingT
- for twodirectiveContainer
- the element that has directivestypeRegistry
- the type registryruntimeWiring
- the runtime wiringSchemaDirectiveWiring
public GraphQLObjectType onObject(GraphQLObjectType objectType, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params)
public GraphQLInterfaceType onInterface(GraphQLInterfaceType interfaceType, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params)
public GraphQLEnumType onEnum(GraphQLEnumType enumType, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params)
public GraphQLInputObjectType onInputObjectType(GraphQLInputObjectType inputObjectType, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params)
public GraphQLUnionType onUnion(GraphQLUnionType element, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params)
public GraphQLScalarType onScalar(GraphQLScalarType element, graphql.schema.idl.SchemaGeneratorDirectiveHelper.Parameters params)