Versions in this module Expand all Collapse all v1 v1.0.0 Nov 28, 2018 Changes in this version + var Prelude = &ast.Source + var UnexpectedType = fmt.Errorf("Unexpected Type") + func AddRule(name string, f ruleFunc) + func LoadSchema(inputs ...*Source) (*Schema, *gqlerror.Error) + func OrList(items ...string) string + func QuotedOrList(items ...string) string + func SuggestionList(input string, options []string) []string + func Validate(schema *Schema, doc *QueryDocument) gqlerror.List + func ValidateSchemaDocument(ast *SchemaDocument) (*Schema, *gqlerror.Error) + func VariableValues(schema *ast.Schema, op *ast.OperationDefinition, ...) (map[string]interface{}, *gqlerror.Error) + func Walk(schema *ast.Schema, document *ast.QueryDocument, observers *Events) + type AddErrFunc func(options ...ErrorOption) + type ErrorOption func(err *gqlerror.Error) + func At(position *ast.Position) ErrorOption + func Message(msg string, args ...interface{}) ErrorOption + func SuggestListQuoted(prefix string, typed string, suggestions []string) ErrorOption + func SuggestListUnquoted(prefix string, typed string, suggestions []string) ErrorOption + func Suggestf(suggestion string, args ...interface{}) ErrorOption + type Events struct + func (o *Events) OnDirective(f func(walker *Walker, directive *ast.Directive)) + func (o *Events) OnDirectiveList(f func(walker *Walker, directives []*ast.Directive)) + func (o *Events) OnField(f func(walker *Walker, field *ast.Field)) + func (o *Events) OnFragment(f func(walker *Walker, fragment *ast.FragmentDefinition)) + func (o *Events) OnFragmentSpread(f func(walker *Walker, fragmentSpread *ast.FragmentSpread)) + func (o *Events) OnInlineFragment(f func(walker *Walker, inlineFragment *ast.InlineFragment)) + func (o *Events) OnOperation(f func(walker *Walker, operation *ast.OperationDefinition)) + func (o *Events) OnValue(f func(walker *Walker, value *ast.Value)) + type Walker struct + Context context.Context + CurrentOperation *ast.OperationDefinition + Document *ast.QueryDocument + Observers *Events + Schema *ast.Schema