Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultExecutionRules = []rules.ExecutionRule{ execution.ArgumentUniqueness(), execution.RequiredArguments(), execution.ValidArguments(), execution.DirectivesAreUniquePerLocation(), execution.DirectivesAreInValidLocations(), execution.DirectivesAreDefined(), execution.FieldSelections(), execution.FieldSelectionMerging(), execution.Fragments(), execution.LoneAnonymousOperation(), execution.OperationNameUniqueness(), execution.SubscriptionSingleRootField(), execution.Values(), execution.VariablesAreInputTypes(), execution.VariableUniqueness(), execution.AllVariableUsesDefined(), execution.AllVariablesUsed(), } )
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func (*Validator) ValidateExecutableDefinition ¶
func (v *Validator) ValidateExecutableDefinition(executionRules []rules.ExecutionRule) (result validation.Result)
Click to show internal directories.
Click to hide internal directories.