Package graphql.validation.rules
Class ExecutableDefinitions
java.lang.Object
graphql.validation.AbstractRule
graphql.validation.rules.ExecutableDefinitions
-
Constructor Summary
ConstructorsConstructorDescriptionExecutableDefinitions
(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector) -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkDocument
(Document document) Executable definitions A GraphQL document is only valid for execution if all definitions are either operation or fragment definitions.Methods inherited from class graphql.validation.AbstractRule
addError, addError, addError, checkArgument, checkDirective, 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
-
ExecutableDefinitions
public ExecutableDefinitions(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector)
-
-
Method Details
-
checkDocument
Executable definitions A GraphQL document is only valid for execution if all definitions are either operation or fragment definitions.- Overrides:
checkDocument
in classAbstractRule
-