Module rules

Source

Structs§

KnownFragmentNames
Validate a document for all fragment names in spreads to be defined in the same document.
LoneAnonymousOperation
Validate a document to only contain one anonymous operation or multiple named operations.
NoFragmentCycles
Validate that a document does not contain fragments that are spread within themselves, creating a loop.
NoUndefinedVariables
Validate that a document defines all the variables it uses per operation
NoUnusedFragments
Validate that a document uses all the fragments it defines at least once.
UniqueArgumentNames
Validates that no arguments anywhere contain duplicate names.
UniqueFragmentNames
Validates that no fragments the document defines have duplicate names. Note: Operations and Fragments are allowed to share names.
UniqueOperationNames
Validates that no operation the document defines have duplicate names. Note: Operations and Fragments are allowed to share names.
UniqueVariableNames
Validates that no operation the document defines has duplicate variable names in its variable definitions.
ValidationContext
The ValidationContext carrying a reference to the AST Context’s arena and a list of errors.

Type Aliases§

DefaultRules
All of GraphQL’s validation rules which don’t require a schema to be run combined into one ValidationRule.