public 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.
Modifier and Type | Interface and Description |
---|---|
static class |
KotlinSchemaDirectiveWiring.DefaultImpls
KotlinSchemaDirectiveWiring is used for enhancing/updating GraphQL type based on the specified directives.
|
Modifier and Type | Method and Description |
---|---|
graphql.schema.GraphQLArgument |
onArgument(KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLArgument> environment)
Modifies GraphQLArgument by applying specified directive.
|
graphql.schema.GraphQLEnumType |
onEnum(KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLEnumType> environment)
Modifies GraphQLEnumType by applying specified directive.
|
graphql.schema.GraphQLEnumValueDefinition |
onEnumValue(KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLEnumValueDefinition> environment)
Modifies GraphQLEnumValueDefinition by applying specified directive.
|
graphql.schema.GraphQLFieldDefinition |
onField(KotlinFieldDirectiveEnvironment environment)
Modifies GraphQLFieldDefinition by applying specified directive.
|
graphql.schema.GraphQLInputObjectField |
onInputObjectField(KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLInputObjectField> environment)
Modifies GraphQLInputObjectField by applying specified directive.
|
graphql.schema.GraphQLInputObjectType |
onInputObjectType(KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLInputObjectType> environment)
Modifies GraphQLInputObjectType by applying specified directive.
|
graphql.schema.GraphQLInterfaceType |
onInterface(KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLInterfaceType> environment)
Modifies GraphQLInterfaceType by applying specified directive.
|
graphql.schema.GraphQLObjectType |
onObject(KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLObjectType> environment)
Modifies GraphQLObjectType by applying specified directive.
|
graphql.schema.GraphQLScalarType |
onScalar(KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLScalarType> environment)
Modifies GraphQLScalarType by applying specified directive.
|
graphql.schema.GraphQLUnionType |
onUnion(KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLUnionType> environment)
Modifies GraphQLUnionType by applying specified directive.
|
graphql.schema.GraphQLDirectiveContainer |
wireOnEnvironment(KotlinSchemaDirectiveEnvironment<?> environment) |
graphql.schema.GraphQLObjectType onObject(KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLObjectType> environment)
Modifies GraphQLObjectType by applying specified directive.
environment
- the wiring elementgraphql.schema.GraphQLFieldDefinition onField(KotlinFieldDirectiveEnvironment environment)
Modifies GraphQLFieldDefinition by applying specified directive.
environment
- the wiring elementgraphql.schema.GraphQLArgument onArgument(KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLArgument> environment)
Modifies GraphQLArgument by applying specified directive.
environment
- the wiring elementgraphql.schema.GraphQLInterfaceType onInterface(KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLInterfaceType> environment)
Modifies GraphQLInterfaceType by applying specified directive.
environment
- the wiring elementgraphql.schema.GraphQLUnionType onUnion(KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLUnionType> environment)
Modifies GraphQLUnionType by applying specified directive.
environment
- the wiring elementgraphql.schema.GraphQLEnumType onEnum(KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLEnumType> environment)
Modifies GraphQLEnumType by applying specified directive.
environment
- the wiring elementgraphql.schema.GraphQLEnumValueDefinition onEnumValue(KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLEnumValueDefinition> environment)
Modifies GraphQLEnumValueDefinition by applying specified directive.
environment
- the wiring elementgraphql.schema.GraphQLScalarType onScalar(KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLScalarType> environment)
Modifies GraphQLScalarType by applying specified directive.
environment
- the wiring elementgraphql.schema.GraphQLInputObjectType onInputObjectType(KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLInputObjectType> environment)
Modifies GraphQLInputObjectType by applying specified directive.
environment
- the wiring elementgraphql.schema.GraphQLInputObjectField onInputObjectField(KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLInputObjectField> environment)
Modifies GraphQLInputObjectField by applying specified directive.
environment
- the wiring elementgraphql.schema.GraphQLDirectiveContainer wireOnEnvironment(KotlinSchemaDirectiveEnvironment<?> environment)