-
- All Implemented Interfaces:
public interface KotlinSchemaDirectiveWiring
KotlinSchemaDirectiveWiring is used for enhancing/updating GraphQL type based on the specified directives.
NOTE: While the GraphQL spec allows specifying the directives on number of different types (@see graphql.introspection.Introspection#DirectiveLocation) only fields have access to graphql.schema.DataFetcher that allows customizing runtime behavior.
-
-
Method Summary
Modifier and Type Method Description GraphQLObjectType
onObject(KotlinSchemaDirectiveEnvironment<GraphQLObjectType> environment)
Modifies GraphQLObjectType by applying specified directive. GraphQLFieldDefinition
onField(KotlinFieldDirectiveEnvironment environment)
Modifies GraphQLFieldDefinition by applying specified directive. GraphQLArgument
onArgument(KotlinSchemaDirectiveEnvironment<GraphQLArgument> environment)
Modifies GraphQLArgument by applying specified directive. GraphQLInterfaceType
onInterface(KotlinSchemaDirectiveEnvironment<GraphQLInterfaceType> environment)
Modifies GraphQLInterfaceType by applying specified directive. GraphQLUnionType
onUnion(KotlinSchemaDirectiveEnvironment<GraphQLUnionType> environment)
Modifies GraphQLUnionType by applying specified directive. GraphQLEnumType
onEnum(KotlinSchemaDirectiveEnvironment<GraphQLEnumType> environment)
Modifies GraphQLEnumType by applying specified directive. GraphQLEnumValueDefinition
onEnumValue(KotlinSchemaDirectiveEnvironment<GraphQLEnumValueDefinition> environment)
Modifies GraphQLEnumValueDefinition by applying specified directive. GraphQLScalarType
onScalar(KotlinSchemaDirectiveEnvironment<GraphQLScalarType> environment)
Modifies GraphQLScalarType by applying specified directive. GraphQLInputObjectType
onInputObjectType(KotlinSchemaDirectiveEnvironment<GraphQLInputObjectType> environment)
Modifies GraphQLInputObjectType by applying specified directive. GraphQLInputObjectField
onInputObjectField(KotlinSchemaDirectiveEnvironment<GraphQLInputObjectField> environment)
Modifies GraphQLInputObjectField by applying specified directive. GraphQLDirectiveContainer
wireOnEnvironment(KotlinSchemaDirectiveEnvironment<?> environment)
-
-
Method Detail
-
onObject
GraphQLObjectType onObject(KotlinSchemaDirectiveEnvironment<GraphQLObjectType> environment)
Modifies GraphQLObjectType by applying specified directive.
- Parameters:
environment
- the wiring element
-
onField
GraphQLFieldDefinition onField(KotlinFieldDirectiveEnvironment environment)
Modifies GraphQLFieldDefinition by applying specified directive.
- Parameters:
environment
- the wiring element
-
onArgument
GraphQLArgument onArgument(KotlinSchemaDirectiveEnvironment<GraphQLArgument> environment)
Modifies GraphQLArgument by applying specified directive.
- Parameters:
environment
- the wiring element
-
onInterface
GraphQLInterfaceType onInterface(KotlinSchemaDirectiveEnvironment<GraphQLInterfaceType> environment)
Modifies GraphQLInterfaceType by applying specified directive.
- Parameters:
environment
- the wiring element
-
onUnion
GraphQLUnionType onUnion(KotlinSchemaDirectiveEnvironment<GraphQLUnionType> environment)
Modifies GraphQLUnionType by applying specified directive.
- Parameters:
environment
- the wiring element
-
onEnum
GraphQLEnumType onEnum(KotlinSchemaDirectiveEnvironment<GraphQLEnumType> environment)
Modifies GraphQLEnumType by applying specified directive.
- Parameters:
environment
- the wiring element
-
onEnumValue
GraphQLEnumValueDefinition onEnumValue(KotlinSchemaDirectiveEnvironment<GraphQLEnumValueDefinition> environment)
Modifies GraphQLEnumValueDefinition by applying specified directive.
- Parameters:
environment
- the wiring element
-
onScalar
GraphQLScalarType onScalar(KotlinSchemaDirectiveEnvironment<GraphQLScalarType> environment)
Modifies GraphQLScalarType by applying specified directive.
- Parameters:
environment
- the wiring element
-
onInputObjectType
GraphQLInputObjectType onInputObjectType(KotlinSchemaDirectiveEnvironment<GraphQLInputObjectType> environment)
Modifies GraphQLInputObjectType by applying specified directive.
- Parameters:
environment
- the wiring element
-
onInputObjectField
GraphQLInputObjectField onInputObjectField(KotlinSchemaDirectiveEnvironment<GraphQLInputObjectField> environment)
Modifies GraphQLInputObjectField by applying specified directive.
- Parameters:
environment
- the wiring element
-
wireOnEnvironment
GraphQLDirectiveContainer wireOnEnvironment(KotlinSchemaDirectiveEnvironment<?> environment)
-
-
-
-