@PublicApi
public class ValidationSchemaWiring
extends java.lang.Object
implements graphql.schema.idl.SchemaDirectiveWiring
SchemaDirectiveWiring that 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 DataFetcher of that field so that rules get run
BEFORE the original field fetch is run.
| Constructor and Description |
|---|
ValidationSchemaWiring(ValidationRules ruleCandidates) |
| Modifier and Type | Method and Description |
|---|---|
graphql.schema.GraphQLFieldDefinition |
onField(graphql.schema.idl.SchemaDirectiveWiringEnvironment<graphql.schema.GraphQLFieldDefinition> env) |
public ValidationSchemaWiring(ValidationRules ruleCandidates)