public static class KotlinSchemaDirectiveWiring.DefaultImpls
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 | Method and Description |
---|---|
static graphql.schema.GraphQLArgument |
onArgument(KotlinSchemaDirectiveWiring $this,
KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLArgument> environment)
Modifies GraphQLArgument by applying specified directive.
|
static graphql.schema.GraphQLEnumType |
onEnum(KotlinSchemaDirectiveWiring $this,
KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLEnumType> environment)
Modifies GraphQLEnumType by applying specified directive.
|
static graphql.schema.GraphQLEnumValueDefinition |
onEnumValue(KotlinSchemaDirectiveWiring $this,
KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLEnumValueDefinition> environment)
Modifies GraphQLEnumValueDefinition by applying specified directive.
|
static graphql.schema.GraphQLFieldDefinition |
onField(KotlinSchemaDirectiveWiring $this,
KotlinFieldDirectiveEnvironment environment)
Modifies GraphQLFieldDefinition by applying specified directive.
|
static graphql.schema.GraphQLInputObjectField |
onInputObjectField(KotlinSchemaDirectiveWiring $this,
KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLInputObjectField> environment)
Modifies GraphQLInputObjectField by applying specified directive.
|
static graphql.schema.GraphQLInputObjectType |
onInputObjectType(KotlinSchemaDirectiveWiring $this,
KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLInputObjectType> environment)
Modifies GraphQLInputObjectType by applying specified directive.
|
static graphql.schema.GraphQLInterfaceType |
onInterface(KotlinSchemaDirectiveWiring $this,
KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLInterfaceType> environment)
Modifies GraphQLInterfaceType by applying specified directive.
|
static graphql.schema.GraphQLObjectType |
onObject(KotlinSchemaDirectiveWiring $this,
KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLObjectType> environment)
Modifies GraphQLObjectType by applying specified directive.
|
static graphql.schema.GraphQLScalarType |
onScalar(KotlinSchemaDirectiveWiring $this,
KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLScalarType> environment)
Modifies GraphQLScalarType by applying specified directive.
|
static graphql.schema.GraphQLUnionType |
onUnion(KotlinSchemaDirectiveWiring $this,
KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLUnionType> environment)
Modifies GraphQLUnionType by applying specified directive.
|
static graphql.schema.GraphQLDirectiveContainer |
wireOnEnvironment(KotlinSchemaDirectiveWiring $this,
KotlinSchemaDirectiveEnvironment<?> environment) |
public static graphql.schema.GraphQLObjectType onObject(KotlinSchemaDirectiveWiring $this, KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLObjectType> environment)
Modifies GraphQLObjectType by applying specified directive.
environment
- the wiring elementpublic static graphql.schema.GraphQLFieldDefinition onField(KotlinSchemaDirectiveWiring $this, KotlinFieldDirectiveEnvironment environment)
Modifies GraphQLFieldDefinition by applying specified directive.
environment
- the wiring elementpublic static graphql.schema.GraphQLArgument onArgument(KotlinSchemaDirectiveWiring $this, KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLArgument> environment)
Modifies GraphQLArgument by applying specified directive.
environment
- the wiring elementpublic static graphql.schema.GraphQLInterfaceType onInterface(KotlinSchemaDirectiveWiring $this, KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLInterfaceType> environment)
Modifies GraphQLInterfaceType by applying specified directive.
environment
- the wiring elementpublic static graphql.schema.GraphQLUnionType onUnion(KotlinSchemaDirectiveWiring $this, KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLUnionType> environment)
Modifies GraphQLUnionType by applying specified directive.
environment
- the wiring elementpublic static graphql.schema.GraphQLEnumType onEnum(KotlinSchemaDirectiveWiring $this, KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLEnumType> environment)
Modifies GraphQLEnumType by applying specified directive.
environment
- the wiring elementpublic static graphql.schema.GraphQLEnumValueDefinition onEnumValue(KotlinSchemaDirectiveWiring $this, KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLEnumValueDefinition> environment)
Modifies GraphQLEnumValueDefinition by applying specified directive.
environment
- the wiring elementpublic static graphql.schema.GraphQLScalarType onScalar(KotlinSchemaDirectiveWiring $this, KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLScalarType> environment)
Modifies GraphQLScalarType by applying specified directive.
environment
- the wiring elementpublic static graphql.schema.GraphQLInputObjectType onInputObjectType(KotlinSchemaDirectiveWiring $this, KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLInputObjectType> environment)
Modifies GraphQLInputObjectType by applying specified directive.
environment
- the wiring elementpublic static graphql.schema.GraphQLInputObjectField onInputObjectField(KotlinSchemaDirectiveWiring $this, KotlinSchemaDirectiveEnvironment<? extends graphql.schema.GraphQLInputObjectField> environment)
Modifies GraphQLInputObjectField by applying specified directive.
environment
- the wiring elementpublic static graphql.schema.GraphQLDirectiveContainer wireOnEnvironment(KotlinSchemaDirectiveWiring $this, KotlinSchemaDirectiveEnvironment<?> environment)