Package graphql.validation.rules
Class SubscriptionUniqueRootField
- java.lang.Object
-
- graphql.validation.AbstractRule
-
- graphql.validation.rules.SubscriptionUniqueRootField
-
public class SubscriptionUniqueRootField extends AbstractRule
A subscription operation must only have one root field A subscription operation's single root field must not be an introspection field https://spec.graphql.org/draft/#sec-Single-root-field
-
-
Constructor Summary
Constructors Constructor Description SubscriptionUniqueRootField(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkOperationDefinition(OperationDefinition operationDef)
-
Methods inherited from class graphql.validation.AbstractRule
addError, addError, addError, checkArgument, checkDirective, checkDocument, checkField, checkFragmentDefinition, checkFragmentSpread, checkInlineFragment, checkObjectValue, checkSelectionSet, checkTypeName, checkVariable, checkVariableDefinition, documentFinished, getErrors, getQueryPath, getValidationContext, getValidationErrorCollector, getValidationUtil, i18n, i18n, isVisitFragmentSpreads, leaveOperationDefinition, leaveSelectionSet, setVisitFragmentSpreads, toString
-
-
-
-
Constructor Detail
-
SubscriptionUniqueRootField
public SubscriptionUniqueRootField(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector)
-
-
Method Detail
-
checkOperationDefinition
public void checkOperationDefinition(OperationDefinition operationDef)
- Overrides:
checkOperationDefinition
in classAbstractRule
-
-