Interface GraphQLDirectiveFieldEncounter<A>
- All Superinterfaces:
GraphQLDirectiveApplyEncounter<A>
- All Known Implementing Classes:
GraphQLDirectiveFieldEncounterImpl
public interface GraphQLDirectiveFieldEncounter<A> extends GraphQLDirectiveApplyEncounter<A>
-
Method Summary
Modifier and Type Method Description graphql.schema.GraphQLFieldDefinition
getField()
Get the field on which the directive is being applied.DataFetchingSupplier<?>
getSupplier()
Get the supplier currently used.void
setSupplier(DataFetchingSupplier<?> supplier)
Update the supplier.void
transformField(Consumer<graphql.schema.GraphQLFieldDefinition.Builder> consumer)
Transform the field using the given builder.Methods inherited from interface se.l4.graphql.binding.resolver.directive.GraphQLDirectiveApplyEncounter
getAnnotation, getContext, getDirective, setArgument, setArguments
-
Method Details
-
getField
graphql.schema.GraphQLFieldDefinition getField()Get the field on which the directive is being applied.- Returns:
-
transformField
Transform the field using the given builder.- Parameters:
consumer
-
-
getSupplier
DataFetchingSupplier<?> getSupplier()Get the supplier currently used.- Returns:
-
setSupplier
Update the supplier.- Parameters:
supplier
-
-