query

package
v0.0.0-...-16c3363 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2016 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Directive

type Directive struct {
	Name      string
	Arguments map[string]interface{}
}

type Document

type Document struct {
	Operations map[string]*Operation
	Fragments  map[string]*NamedFragment
}

func Parse

func Parse(queryString string, resolver common.Resolver) (*Document, *errors.QueryError)

type Field

type Field struct {
	Alias      string
	Name       string
	Arguments  map[string]interface{}
	Directives map[string]*Directive
	SelSet     *SelectionSet
}

type Fragment

type Fragment struct {
	On     string
	SelSet *SelectionSet
}

type FragmentSpread

type FragmentSpread struct {
	Name       string
	Directives map[string]*Directive
}

type InlineFragment

type InlineFragment struct {
	Fragment
	Directives map[string]*Directive
}

type NamedFragment

type NamedFragment struct {
	Fragment
	Name string
}

type Operation

type Operation struct {
	Type   OperationType
	Name   string
	Vars   common.InputMap
	SelSet *SelectionSet
}

type OperationType

type OperationType int
const (
	Query OperationType = iota
	Mutation
)

type Selection

type Selection interface {
	// contains filtered or unexported methods
}

type SelectionSet

type SelectionSet struct {
	Selections []Selection
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL