Interface SchemaDirectiveWiring


@PublicApi public interface SchemaDirectiveWiring
A SchemaDirectiveWiring is responsible for enhancing a runtime element based on directives placed on that element in the Schema Definition Language (SDL).

It can enhance the graphql runtime element and add new behaviour for example by changing the fields DataFetcher

The SchemaDirectiveWiring objects are called in a specific order based on registration:

  1. RuntimeWiring.Builder.directive(String, SchemaDirectiveWiring) which work against a specific named directive are called first
  2. RuntimeWiring.Builder.directiveWiring(SchemaDirectiveWiring) which work against all directives are called next
  3. WiringFactory.providesSchemaDirectiveWiring(SchemaDirectiveWiringEnvironment) which work against all directives are called last