Documentation ¶
Index ¶
Constants ¶
View Source
const ( Query OperationType = "QUERY" Mutation = "MUTATION" Subscription = "SUBSCRIPTION" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { Operations OperationList Fragments FragmentList }
type Field ¶
type Field struct { Alias common.Ident Name common.Ident Arguments common.ArgumentList Directives common.DirectiveList SelSet *SelectionSet }
type Fragment ¶
type Fragment struct { On common.TypeName SelSet *SelectionSet }
type FragmentDecl ¶
type FragmentList ¶
type FragmentList []*FragmentDecl
func (FragmentList) Get ¶
func (l FragmentList) Get(name string) *FragmentDecl
type FragmentSpread ¶
type InlineFragment ¶
type InlineFragment struct { Fragment Directives common.DirectiveList Loc errors.Location }
type Operation ¶
type Operation struct { Type OperationType Name common.Ident Vars common.InputValueList SelSet *SelectionSet Directives common.DirectiveList Loc errors.Location }
type OperationList ¶
type OperationList []*Operation
func (OperationList) Get ¶
func (l OperationList) Get(name string) *Operation
type OperationType ¶
type OperationType string
type SelectionSet ¶
Click to show internal directories.
Click to hide internal directories.