@PublicApi public interface SchemaDirectiveWiring
It can enhance the graphql runtime element and add new behaviour for example by changing
the fields DataFetcher
The SchemaDirectiveWiring objects are called in a specific order based on registration:
RuntimeWiring.Builder.directive(String, SchemaDirectiveWiring) which work against a specific named directive are called firstRuntimeWiring.Builder.directiveWiring(SchemaDirectiveWiring) which work against all directives are called nextWiringFactory.providesSchemaDirectiveWiring(SchemaDirectiveWiringEnvironment) which work against all directives are called last| Modifier and Type | Method and Description |
|---|---|
default GraphQLArgument |
onArgument(SchemaDirectiveWiringEnvironment<GraphQLArgument> environment)
This is called when an argument is encountered, which gives the schema directive a chance to modify the shape and behaviour
of that DSL element
|
default GraphQLEnumType |
onEnum(SchemaDirectiveWiringEnvironment<GraphQLEnumType> environment)
This is called when an enum is encountered, which gives the schema directive a chance to modify the shape and behaviour
of that DSL element
|
default GraphQLEnumValueDefinition |
onEnumValue(SchemaDirectiveWiringEnvironment<GraphQLEnumValueDefinition> environment)
This is called when an enum value is encountered, which gives the schema directive a chance to modify the shape and behaviour
of that DSL element
|
default GraphQLFieldDefinition |
onField(SchemaDirectiveWiringEnvironment<GraphQLFieldDefinition> environment)
This is called when a field is encountered, which gives the schema directive a chance to modify the shape and behaviour
of that DSL element
|
default GraphQLInputObjectField |
onInputObjectField(SchemaDirectiveWiringEnvironment<GraphQLInputObjectField> environment)
This is called when an input object field is encountered, which gives the schema directive a chance to modify the shape and behaviour
of that DSL element
|
default GraphQLInputObjectType |
onInputObjectType(SchemaDirectiveWiringEnvironment<GraphQLInputObjectType> environment)
This is called when an input object is encountered, which gives the schema directive a chance to modify the shape and behaviour
of that DSL element
|
default GraphQLInterfaceType |
onInterface(SchemaDirectiveWiringEnvironment<GraphQLInterfaceType> environment)
This is called when an interface is encountered, which gives the schema directive a chance to modify the shape and behaviour
of that DSL element
|
default GraphQLObjectType |
onObject(SchemaDirectiveWiringEnvironment<GraphQLObjectType> environment)
This is called when an object is encountered, which gives the schema directive a chance to modify the shape and behaviour
of that DSL element
|
default GraphQLScalarType |
onScalar(SchemaDirectiveWiringEnvironment<GraphQLScalarType> environment)
This is called when a custom scalar is encountered, which gives the schema directive a chance to modify the shape and behaviour
of that DSL element
|
default GraphQLUnionType |
onUnion(SchemaDirectiveWiringEnvironment<GraphQLUnionType> environment)
This is called when a union is encountered, which gives the schema directive a chance to modify the shape and behaviour
of that DSL element
|
default GraphQLObjectType onObject(SchemaDirectiveWiringEnvironment<GraphQLObjectType> environment)
The onArgument(SchemaDirectiveWiringEnvironment) and onField(SchemaDirectiveWiringEnvironment) callbacks will have been
invoked for this element beforehand
environment - the wiring elementdefault GraphQLFieldDefinition onField(SchemaDirectiveWiringEnvironment<GraphQLFieldDefinition> environment)
The onArgument(SchemaDirectiveWiringEnvironment) callbacks will have been
invoked for this element beforehand
environment - the wiring elementdefault GraphQLArgument onArgument(SchemaDirectiveWiringEnvironment<GraphQLArgument> environment)
environment - the wiring elementdefault GraphQLInterfaceType onInterface(SchemaDirectiveWiringEnvironment<GraphQLInterfaceType> environment)
The onArgument(SchemaDirectiveWiringEnvironment) and onField(SchemaDirectiveWiringEnvironment) callbacks will have been
invoked for this element beforehand
environment - the wiring elementdefault GraphQLUnionType onUnion(SchemaDirectiveWiringEnvironment<GraphQLUnionType> environment)
environment - the wiring elementdefault GraphQLEnumType onEnum(SchemaDirectiveWiringEnvironment<GraphQLEnumType> environment)
The onEnumValue(SchemaDirectiveWiringEnvironment) callbacks will have been invoked for this element beforehand
environment - the wiring elementdefault GraphQLEnumValueDefinition onEnumValue(SchemaDirectiveWiringEnvironment<GraphQLEnumValueDefinition> environment)
environment - the wiring elementdefault GraphQLScalarType onScalar(SchemaDirectiveWiringEnvironment<GraphQLScalarType> environment)
environment - the wiring elementdefault GraphQLInputObjectType onInputObjectType(SchemaDirectiveWiringEnvironment<GraphQLInputObjectType> environment)
The onInputObjectField(SchemaDirectiveWiringEnvironment)callbacks will have been invoked for this element beforehand
environment - the wiring elementdefault GraphQLInputObjectField onInputObjectField(SchemaDirectiveWiringEnvironment<GraphQLInputObjectField> environment)
environment - the wiring element