Package graphql.validation.schemawiring
Class ValidationSchemaWiring
- java.lang.Object
-
- graphql.validation.schemawiring.ValidationSchemaWiring
-
- All Implemented Interfaces:
graphql.schema.idl.SchemaDirectiveWiring
@PublicApi public class ValidationSchemaWiring extends java.lang.Object implements graphql.schema.idl.SchemaDirectiveWiringASchemaDirectiveWiringthat can be used to inject validation rules into the data fetchers when the graphql schema is being built. It will use the validation rules and ask each one of they apply to the field and or its arguments.If there are rules that apply then it will it will change the
DataFetcherof that field so that rules get run BEFORE the original field fetch is run.
-
-
Constructor Summary
Constructors Constructor Description ValidationSchemaWiring(ValidationRules ruleCandidates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description graphql.schema.GraphQLFieldDefinitiononField(graphql.schema.idl.SchemaDirectiveWiringEnvironment<graphql.schema.GraphQLFieldDefinition> env)
-
-
-
Constructor Detail
-
ValidationSchemaWiring
public ValidationSchemaWiring(ValidationRules ruleCandidates)
-
-