Package graphql.validation.rules
Class UniqueOperationNames
- java.lang.Object
-
- graphql.validation.AbstractRule
-
- graphql.validation.rules.UniqueOperationNames
-
public class UniqueOperationNames extends AbstractRule
A GraphQL document is only valid if all defined operations have unique names. https://spec.graphql.org/October2021/#sec-Operation-Name-Uniqueness
-
-
Constructor Summary
Constructors Constructor Description UniqueOperationNames(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkOperationDefinition(OperationDefinition operationDefinition)
-
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
-
UniqueOperationNames
public UniqueOperationNames(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector)
-
-
Method Detail
-
checkOperationDefinition
public void checkOperationDefinition(OperationDefinition operationDefinition)
- Overrides:
checkOperationDefinition
in classAbstractRule
-
-