Package graphql.validation.rules
Class DeferDirectiveLabel
java.lang.Object
graphql.validation.AbstractRule
graphql.validation.rules.DeferDirectiveLabel
Defer and stream directive labels are unique
A GraphQL document is only valid if defer and stream directives' label argument is static and unique.
See proposed spec:spec/Section 5 -- Validation.md ### ### Defer And Stream Directive Labels Are Unique
-
Constructor Summary
ConstructorsConstructorDescriptionDeferDirectiveLabel
(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
-
DeferDirectiveLabel
public DeferDirectiveLabel(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector)
-
-
Method Details
-
checkDirective
- Overrides:
checkDirective
in classAbstractRule
-