Class FieldValidationInstrumentation

java.lang.Object
graphql.execution.instrumentation.SimplePerformantInstrumentation
graphql.execution.instrumentation.fieldvalidation.FieldValidationInstrumentation
All Implemented Interfaces:
Instrumentation

@PublicApi public class FieldValidationInstrumentation extends SimplePerformantInstrumentation
This Instrumentation allows you to validate the fields of the query before the query is executed. You need to provide an implementation of FieldValidation that is called to validate fields. If it returns errors then the query execution will be aborted and the errors will be returned in the execution result
See Also: