public class ExecutableDefinitions extends AbstractRule
Constructor and Description |
---|
ExecutableDefinitions(ValidationContext validationContext,
ValidationErrorCollector validationErrorCollector) |
Modifier and Type | Method and Description |
---|---|
void |
checkDocument(Document document)
Executable definitions
A GraphQL document is only valid for execution if all definitions are either
operation or fragment definitions.
|
addError, addError, checkArgument, checkDirective, checkField, checkFragmentDefinition, checkFragmentSpread, checkInlineFragment, checkOperationDefinition, checkSelectionSet, checkTypeName, checkVariable, checkVariableDefinition, documentFinished, getErrors, getQueryPath, getValidationContext, getValidationErrorCollector, getValidationUtil, isVisitFragmentSpreads, leaveOperationDefinition, leaveSelectionSet, setValidationUtil, setVisitFragmentSpreads, toString
public ExecutableDefinitions(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector)
public void checkDocument(Document document)
checkDocument
in class AbstractRule