public class KotlinFieldDirectiveEnvironment
extends KotlinSchemaDirectiveEnvironment
KotlinFieldDirectiveEnvironment holds wiring information for applying directives on GraphQL fields.
Constructor and Description |
---|
KotlinFieldDirectiveEnvironment(graphql.schema.GraphQLFieldDefinition field,
graphql.schema.GraphQLDirective fieldDirective,
graphql.schema.FieldCoordinates coordinates,
graphql.schema.GraphQLCodeRegistry.Builder codeRegistry)
KotlinFieldDirectiveEnvironment holds wiring information for applying directives on GraphQL fields.
|
Modifier and Type | Method and Description |
---|---|
graphql.schema.DataFetcher<java.lang.Object> |
getDataFetcher()
Retrieve current data fetcher associated with the target element.
|
void |
setDataFetcher(graphql.schema.DataFetcher<java.lang.Object> newDataFetcher)
Update target element data fetcher.
|
getDirective, getElement, isValid
public KotlinFieldDirectiveEnvironment(graphql.schema.GraphQLFieldDefinition field, graphql.schema.GraphQLDirective fieldDirective, graphql.schema.FieldCoordinates coordinates, graphql.schema.GraphQLCodeRegistry.Builder codeRegistry)
KotlinFieldDirectiveEnvironment holds wiring information for applying directives on GraphQL fields.
public graphql.schema.DataFetcher<java.lang.Object> getDataFetcher()
Retrieve current data fetcher associated with the target element.
public void setDataFetcher(graphql.schema.DataFetcher<java.lang.Object> newDataFetcher)
Update target element data fetcher.