Package graphql.validation.rules
Class ExecutableDefinitions
- java.lang.Object
-
- graphql.validation.AbstractRule
-
- graphql.validation.rules.ExecutableDefinitions
-
public class ExecutableDefinitions extends AbstractRule
-
-
Constructor Summary
Constructors Constructor Description ExecutableDefinitions(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 Detail
-
ExecutableDefinitions
public ExecutableDefinitions(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector)
-
-
Method Detail
-
checkDocument
public void checkDocument(Document document)
Executable definitions A GraphQL document is only valid for execution if all definitions are either operation or fragment definitions.- Overrides:
checkDocument
in classAbstractRule
-
-