Package graphql.validation.rules
Class DeferDirectiveOnValidOperation
java.lang.Object
graphql.validation.AbstractRule
graphql.validation.rules.DeferDirectiveOnValidOperation
Defer Directive is Used On Valid Operations
A GraphQL document is only valid if defer directives are not used on subscription types.
See proposed spec:spec/Section 5 -- Validation.md ### Defer And Stream Directives Are Used On Valid Operations
-
Constructor Summary
ConstructorsConstructorDescriptionDeferDirectiveOnValidOperation
(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector) -
Method Summary
Methods inherited from class graphql.validation.AbstractRule
addError, addError, addError, checkArgument, checkDocument, checkField, checkFragmentDefinition, checkFragmentSpread, checkInlineFragment, checkObjectValue, checkOperationDefinition, checkSelectionSet, checkTypeName, checkVariable, checkVariableDefinition, documentFinished, getErrors, getQueryPath, getValidationContext, getValidationErrorCollector, getValidationUtil, i18n, i18n, isExperimentalApiKeyEnabled, isVisitFragmentSpreads, leaveOperationDefinition, leaveSelectionSet, setVisitFragmentSpreads, toString
-
Constructor Details
-
DeferDirectiveOnValidOperation
public DeferDirectiveOnValidOperation(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector)
-
-
Method Details
-
checkDirective
- Overrides:
checkDirective
in classAbstractRule
-