Package graphql.validation.rules
Class DeferDirectiveOnRootLevel
java.lang.Object
graphql.validation.AbstractRule
graphql.validation.rules.DeferDirectiveOnRootLevel
Defer and stream directives are used on valid root field
A GraphQL document is only valid if defer directives are not used on root mutation or subscription types.
See proposed spec:spec/Section 5 -- Validation.md ### Defer And Stream Directives Are Used On Valid Root Field
-
Constructor Summary
ConstructorsConstructorDescriptionDeferDirectiveOnRootLevel
(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
-
DeferDirectiveOnRootLevel
public DeferDirectiveOnRootLevel(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector)
-
-
Method Details
-
checkDirective
- Overrides:
checkDirective
in classAbstractRule
-