Documentation ¶
Index ¶
- type ArgumentSetIterable
- type ArgumentsIterable
- type DirectiveDefinitionIterable
- type DirectiveIterable
- type DirectiveSetIterable
- type EnumTypeDefinitionIterable
- type EnumValueDefinitionIterator
- type FieldsContainingDirectiveIterator
- type FieldsIterable
- type FieldsIterator
- type FragmentDefinitionIterable
- type FragmentSpreadIterable
- type InlineFragmentIterable
- type InputValueDefinitionIterator
- type Iterable
- type Lookup
- func (l *Lookup) Argument(i int) document.Argument
- func (l *Lookup) ArgumentByIndexAndName(index []int, name document.ByteSliceReference) (document.Argument, bool)
- func (l *Lookup) ArgumentSet(ref int) document.ArgumentSet
- func (l *Lookup) ArgumentsAreEqual(first []int, second []int) bool
- func (l *Lookup) ArgumentsDefinition(i int) document.ArgumentsDefinition
- func (l *Lookup) ArgumentsIterable(refs []int) ArgumentsIterable
- func (l *Lookup) ByteSlice(reference document.ByteSliceReference) document.ByteSlice
- func (l *Lookup) ByteSliceReference(ref int) document.ByteSliceReference
- func (l *Lookup) ByteSliceReferenceContentsEquals(left, right document.ByteSliceReference) bool
- func (l *Lookup) ByteSliceReferencesContainName(refs []document.ByteSliceReference, name document.ByteSliceReference) bool
- func (l *Lookup) CachedName(i int) document.ByteSlice
- func (l *Lookup) Directive(i int) document.Directive
- func (l *Lookup) DirectiveDefinition(ref int) document.DirectiveDefinition
- func (l *Lookup) DirectiveDefinitionByName(name document.ByteSliceReference) (document.DirectiveDefinition, bool)
- func (l *Lookup) DirectiveIterable(refs []int) DirectiveIterable
- func (l *Lookup) DirectiveLocationFromNode(node Node) document.DirectiveLocation
- func (l *Lookup) DirectiveSet(ref int) document.DirectiveSet
- func (l *Lookup) EnumTypeDefinitionByName(name document.ByteSliceReference) (document.EnumTypeDefinition, bool)
- func (l *Lookup) EnumTypeDefinitionContainsValue(definition document.EnumTypeDefinition, enumValue document.ByteSliceReference) bool
- func (l *Lookup) EnumTypeDefinitionIterable(refs []int) EnumTypeDefinitionIterable
- func (l *Lookup) EnumValueDefinitionIterator(refs []int) EnumValueDefinitionIterator
- func (l Lookup) Field(i int) document.Field
- func (l *Lookup) FieldDefinition(ref int) document.FieldDefinition
- func (l *Lookup) FieldDefinitionByNameFromIndex(index []int, name document.ByteSliceReference) (document.FieldDefinition, bool)
- func (l *Lookup) FieldNamesAndAliasesAreEqual(left, right document.Field) bool
- func (l *Lookup) FieldResponseNamesAreEqual(left, right document.Field) bool
- func (l *Lookup) FieldSelectionsArePossible(onTypeName document.ByteSliceReference, selections document.SelectionSet) bool
- func (l *Lookup) FieldType(typeName document.ByteSliceReference, fieldName document.ByteSliceReference) (document.Type, bool)
- func (l *Lookup) FieldsDeepEqual(left, right document.Field) bool
- func (l *Lookup) FieldsDefinitionFromNamedType(name document.ByteSliceReference) (fields []int)
- func (l *Lookup) FieldsIterator(i []int) FieldsIterator
- func (l *Lookup) FragmentDefinition(i int) document.FragmentDefinition
- func (l *Lookup) FragmentDefinitionByName(name document.ByteSliceReference) (definition document.FragmentDefinition, index int, valid bool)
- func (l *Lookup) FragmentDefinitions() document.FragmentDefinitions
- func (l *Lookup) FragmentSelectionsArePossible(onTypeName document.ByteSliceReference, selections document.SelectionSet) bool
- func (l *Lookup) FragmentSpread(i int) document.FragmentSpread
- func (l *Lookup) FragmentSpreadIterable(refs []int) FragmentSpreadIterable
- func (l *Lookup) FragmentSpreads() document.FragmentSpreads
- func (l *Lookup) FragmentSpreadsDeepEqual(left, right document.FragmentSpread) bool
- func (l *Lookup) FragmentSpreadsRootNumFields(spreadRefs []int) (amount int)
- func (l *Lookup) HasFragmentDefinitions() bool
- func (l *Lookup) HasOperationDefinitions() bool
- func (l *Lookup) InlineFragment(i int) document.InlineFragment
- func (l *Lookup) InlineFragmentIterable(refs []int) InlineFragmentIterable
- func (l *Lookup) InlineFragmentRootNumFields(inlineFragmentRefs []int) (amount int)
- func (l *Lookup) InlineFragmentsDeepEqual(left, right document.InlineFragment) bool
- func (l *Lookup) InputObjectTypeDefinitionByName(name document.ByteSliceReference) (document.InputObjectTypeDefinition, bool)
- func (l *Lookup) InputValueDefinitionByNameAndIndex(name document.ByteSliceReference, i []int) (document.InputValueDefinition, bool)
- func (l *Lookup) InputValueDefinitionHasDefaultValue(definition document.InputValueDefinition) bool
- func (l *Lookup) InputValueDefinitionIsRequired(inputValue document.InputValueDefinition) bool
- func (l *Lookup) InputValueDefinitionIterator(refs []int) InputValueDefinitionIterator
- func (l *Lookup) InterfaceTypeDefinitionByName(name document.ByteSliceReference) (document.InterfaceTypeDefinition, bool)
- func (l *Lookup) IsFragmentDefinitionUsedInOperation(name document.ByteSliceReference) bool
- func (l *Lookup) IsLeafNode(typeName document.ByteSliceReference) bool
- func (l *Lookup) IsUniqueFragmentName(fragmentIndex int, name document.ByteSliceReference) bool
- func (l *Lookup) ListValue(ref int) document.ListValue
- func (l *Lookup) MutationObjectTypeDefinition() (document.ObjectTypeDefinition, bool)
- func (l *Lookup) ObjectField(i int) document.ObjectField
- func (l *Lookup) ObjectFieldByIndexAndName(index []int, name document.ByteSliceReference) (document.ObjectField, bool)
- func (l *Lookup) ObjectFieldsIterator(refs []int) ObjectFieldsIterator
- func (l *Lookup) ObjectTypeDefinition(ref int) document.ObjectTypeDefinition
- func (l *Lookup) ObjectTypeDefinitionByName(name document.ByteSliceReference) (definition document.ObjectTypeDefinition, exists bool)
- func (l *Lookup) ObjectTypeDefinitionImplementsInterface(definition document.ObjectTypeDefinition, ...) bool
- func (l *Lookup) ObjectTypeDefinitionIterable(refs []int) ObjectTypeDefinitionIterable
- func (l *Lookup) ObjectValue(ref int) document.ObjectValue
- func (l *Lookup) OperationDefinition(i int) document.OperationDefinition
- func (l *Lookup) OperationDefinitions() document.OperationDefinitions
- func (l *Lookup) OperationTypeName(definition document.OperationDefinition) document.ByteSliceReference
- func (l *Lookup) PossibleSelectionTypes(typeName document.ByteSliceReference, ...)
- func (l *Lookup) QueryObjectTypeDefinition() (document.ObjectTypeDefinition, bool)
- func (l *Lookup) ScalarTypeDefinitionByName(name document.ByteSliceReference) (document.ScalarTypeDefinition, bool)
- func (l *Lookup) SelectionSet(ref int) document.SelectionSet
- func (l *Lookup) SelectionSetCollectedFields(set document.SelectionSet, setTypeName document.ByteSliceReference) SelectionSetFieldsIterator
- func (l *Lookup) SelectionSetContainsFragmentSpread(set document.SelectionSet, spreadName document.ByteSliceReference) bool
- func (l *Lookup) SelectionSetContentsIterator(ref int) SelectionSetContentsIterator
- func (l *Lookup) SelectionSetDeepEqual(left, right document.SelectionSet) bool
- func (l *Lookup) SelectionSetDifferingSelectionSetIterator(set document.SelectionSet, ignoreTypeName document.ByteSliceReference) SelectionSetDifferingSelectionSetIterator
- func (l *Lookup) SelectionSetHasSelections(set document.SelectionSet) bool
- func (l *Lookup) SelectionSetNumRootFields(set document.SelectionSet) int
- func (l *Lookup) SelectionSetsAreOfSameResponseShape(leftSet, rightSet TypedSet) bool
- func (l *Lookup) SetParser(p *parser.Parser)
- func (l *Lookup) SubscriptionObjectTypeDefinition() (document.ObjectTypeDefinition, bool)
- func (l *Lookup) Type(i int) document.Type
- func (l *Lookup) TypeIsScalarOrEnum(name document.ByteSliceReference) bool
- func (l *Lookup) TypeIsValidFragmentTypeCondition(name document.ByteSliceReference) bool
- func (l *Lookup) TypeSatisfiesTypeSystemType(typeSystemTypeDefinition document.Type, executableTypeDefinition document.Type) bool
- func (l *Lookup) TypesAreEqual(left, right document.Type) bool
- func (l *Lookup) UnionTypeDefinitionByName(name document.ByteSliceReference) (document.UnionTypeDefinition, bool)
- func (l *Lookup) UnionTypeDefinitionContainsType(definition document.UnionTypeDefinition, typeName document.ByteSliceReference) bool
- func (l *Lookup) UnionTypeDefinitionNamesContainingMember(memberName document.ByteSliceReference, ...)
- func (l *Lookup) UnwrappedNamedType(docType document.Type) document.Type
- func (l *Lookup) Value(i int) document.Value
- func (l *Lookup) ValueIsValid(value document.Value, typeSystemType document.Type, ...) bool
- func (l *Lookup) ValueListsAreEqual(first, second int) bool
- func (l *Lookup) ValueObjectsAreEqual(first, second int) bool
- func (l *Lookup) ValuesAreEqual(first, second int) bool
- func (l *Lookup) VariableDefinition(variableName document.ByteSliceReference, variableDefinitionRefs []int) (document.VariableDefinition, bool)
- func (l *Lookup) VariableDefinitionIterator(refs []int) VariableDefinitionsIterator
- type Node
- type NodeKind
- type NodeUsageInOperationsIterator
- type ObjectFieldsIterator
- type ObjectTypeDefinitionIterable
- type OperationDefinitionIterable
- type SelectionSetContentsIterator
- type SelectionSetDifferingSelectionSetIterator
- type SelectionSetFieldsIterator
- type SelectionSetIterable
- type TypeSystemDefinitionOrderedRootNodes
- type TypedSet
- type VariableDefinitionsIterator
- type Walker
- func (w *Walker) ArgumentSetIterable() ArgumentSetIterable
- func (w *Walker) ArgumentsDefinition(parent int) document.ArgumentsDefinition
- func (w *Walker) DirectiveDefinitionIterable() DirectiveDefinitionIterable
- func (w *Walker) DirectiveSetIterable() DirectiveSetIterable
- func (w *Walker) FieldPath(parent int) (path []document.ByteSliceReference)
- func (w *Walker) FieldsContainingDirectiveIterator(directiveNameRef document.ByteSliceReference) FieldsContainingDirectiveIterator
- func (w *Walker) FieldsIterable() FieldsIterable
- func (w *Walker) FragmentDefinitionIterable() FragmentDefinitionIterable
- func (w *Walker) FragmentUsageInOperations(fragmentName document.ByteSliceReference, refs *[]int)
- func (w *Walker) Node(ref int) Node
- func (w *Walker) NodeUsageInOperationsIterator(ref int) (iter NodeUsageInOperationsIterator)
- func (w *Walker) OperationDefinitionIterable() OperationDefinitionIterable
- func (w *Walker) Parent(i int) (Node, bool)
- func (w *Walker) ParentEquals(parent int, kind NodeKind) (Node, bool)
- func (w *Walker) RootNode(ref int) (node Node)
- func (w *Walker) SelectionSetIterable() SelectionSetIterable
- func (w *Walker) SelectionSetTypeName(set document.SelectionSet, parent int) (typeName document.ByteSliceReference)
- func (w *Walker) SetLookup(l *Lookup)
- func (w *Walker) TypeSystemDefinitionOrderedRootNodes() TypeSystemDefinitionOrderedRootNodes
- func (w *Walker) WalkDirectiveDefinitions(refs []int)
- func (w *Walker) WalkEnumTypeDefinitions(refs []int)
- func (w *Walker) WalkExecutable()
- func (w *Walker) WalkInputObjectTypeDefinitions(refs []int)
- func (w *Walker) WalkInputValueDefinitions(refs []int, parent int)
- func (w *Walker) WalkInterfaceTypeDefinitions(refs []int)
- func (w *Walker) WalkObjectTypeDefinitions(refs []int)
- func (w *Walker) WalkScalarTypeDefinitions(refs []int)
- func (w *Walker) WalkSchemaDefinition(definition document.SchemaDefinition)
- func (w *Walker) WalkTypeSystemDefinition()
- func (w *Walker) WalkUnionTypeDefinitions(refs []int)
- func (w *Walker) WalkUpUntilTypeName(from Node, fieldPath *[]document.ByteSliceReference) (typeName document.ByteSliceReference, node Node)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArgumentSetIterable ¶
type ArgumentSetIterable struct {
Iterable
}
func (*ArgumentSetIterable) Value ¶
func (a *ArgumentSetIterable) Value() (argumentSet document.ArgumentSet, parent int)
type ArgumentsIterable ¶
type ArgumentsIterable struct {
// contains filtered or unexported fields
}
func (*ArgumentsIterable) Next ¶
func (a *ArgumentsIterable) Next() bool
type DirectiveDefinitionIterable ¶ added in v1.3.0
type DirectiveDefinitionIterable struct {
Iterable
}
func (*DirectiveDefinitionIterable) Value ¶ added in v1.3.0
func (d *DirectiveDefinitionIterable) Value() (definition document.DirectiveDefinition, ref int)
type DirectiveIterable ¶
type DirectiveIterable struct {
// contains filtered or unexported fields
}
func (*DirectiveIterable) Next ¶
func (d *DirectiveIterable) Next() bool
type DirectiveSetIterable ¶
type DirectiveSetIterable struct {
Iterable
}
func (*DirectiveSetIterable) Value ¶
func (d *DirectiveSetIterable) Value() (set document.DirectiveSet, parent int)
type EnumTypeDefinitionIterable ¶ added in v1.2.0
type EnumTypeDefinitionIterable struct {
// contains filtered or unexported fields
}
func (*EnumTypeDefinitionIterable) Next ¶ added in v1.2.0
func (e *EnumTypeDefinitionIterable) Next() bool
func (*EnumTypeDefinitionIterable) Value ¶ added in v1.2.0
func (e *EnumTypeDefinitionIterable) Value() (ref int, definition document.EnumTypeDefinition)
type EnumValueDefinitionIterator ¶
type EnumValueDefinitionIterator struct {
// contains filtered or unexported fields
}
func (*EnumValueDefinitionIterator) Next ¶
func (e *EnumValueDefinitionIterator) Next() bool
func (*EnumValueDefinitionIterator) Value ¶
func (e *EnumValueDefinitionIterator) Value() (definition document.EnumValueDefinition, ref int)
type FieldsContainingDirectiveIterator ¶ added in v1.3.0
type FieldsContainingDirectiveIterator struct {
// contains filtered or unexported fields
}
func (*FieldsContainingDirectiveIterator) Next ¶ added in v1.3.0
func (f *FieldsContainingDirectiveIterator) Next() bool
func (*FieldsContainingDirectiveIterator) Value ¶ added in v1.3.0
func (f *FieldsContainingDirectiveIterator) Value() (fieldDefinitionRef, objectTypeDefinitionRef, directiveRef int)
type FieldsIterable ¶
type FieldsIterable struct {
Iterable
}
type FieldsIterator ¶
type FieldsIterator struct {
// contains filtered or unexported fields
}
func (*FieldsIterator) Next ¶
func (f *FieldsIterator) Next() bool
type FragmentDefinitionIterable ¶ added in v1.0.1
type FragmentDefinitionIterable struct {
Iterable
}
func (*FragmentDefinitionIterable) Value ¶ added in v1.0.1
func (f *FragmentDefinitionIterable) Value() document.FragmentDefinition
type FragmentSpreadIterable ¶
type FragmentSpreadIterable struct {
// contains filtered or unexported fields
}
func (*FragmentSpreadIterable) Next ¶
func (f *FragmentSpreadIterable) Next() bool
func (*FragmentSpreadIterable) Value ¶
func (f *FragmentSpreadIterable) Value() (spread document.FragmentSpread, ref int)
type InlineFragmentIterable ¶
type InlineFragmentIterable struct {
// contains filtered or unexported fields
}
func (*InlineFragmentIterable) Next ¶
func (i *InlineFragmentIterable) Next() bool
func (*InlineFragmentIterable) Value ¶
func (i *InlineFragmentIterable) Value() (inlineFragment document.InlineFragment, ref int)
type InputValueDefinitionIterator ¶
type InputValueDefinitionIterator struct {
// contains filtered or unexported fields
}
func (*InputValueDefinitionIterator) Next ¶
func (i *InputValueDefinitionIterator) Next() bool
func (*InputValueDefinitionIterator) Value ¶
func (i *InputValueDefinitionIterator) Value() (definition document.InputValueDefinition, ref int)
type Lookup ¶
type Lookup struct {
// contains filtered or unexported fields
}
Lookup is a helper to easily look things up in a parsed definition
func (*Lookup) ArgumentByIndexAndName ¶
func (*Lookup) ArgumentSet ¶
func (l *Lookup) ArgumentSet(ref int) document.ArgumentSet
func (*Lookup) ArgumentsAreEqual ¶
func (*Lookup) ArgumentsDefinition ¶
func (l *Lookup) ArgumentsDefinition(i int) document.ArgumentsDefinition
func (*Lookup) ArgumentsIterable ¶
func (l *Lookup) ArgumentsIterable(refs []int) ArgumentsIterable
func (*Lookup) ByteSlice ¶
func (l *Lookup) ByteSlice(reference document.ByteSliceReference) document.ByteSlice
func (*Lookup) ByteSliceReference ¶ added in v1.4.0
func (l *Lookup) ByteSliceReference(ref int) document.ByteSliceReference
func (*Lookup) ByteSliceReferenceContentsEquals ¶ added in v1.4.0
func (l *Lookup) ByteSliceReferenceContentsEquals(left, right document.ByteSliceReference) bool
func (*Lookup) ByteSliceReferencesContainName ¶ added in v1.4.0
func (l *Lookup) ByteSliceReferencesContainName(refs []document.ByteSliceReference, name document.ByteSliceReference) bool
func (*Lookup) DirectiveDefinition ¶ added in v1.3.0
func (l *Lookup) DirectiveDefinition(ref int) document.DirectiveDefinition
func (*Lookup) DirectiveDefinitionByName ¶
func (l *Lookup) DirectiveDefinitionByName(name document.ByteSliceReference) (document.DirectiveDefinition, bool)
func (*Lookup) DirectiveIterable ¶
func (l *Lookup) DirectiveIterable(refs []int) DirectiveIterable
func (*Lookup) DirectiveLocationFromNode ¶
func (l *Lookup) DirectiveLocationFromNode(node Node) document.DirectiveLocation
func (*Lookup) DirectiveSet ¶
func (l *Lookup) DirectiveSet(ref int) document.DirectiveSet
func (*Lookup) EnumTypeDefinitionByName ¶
func (l *Lookup) EnumTypeDefinitionByName(name document.ByteSliceReference) (document.EnumTypeDefinition, bool)
func (*Lookup) EnumTypeDefinitionContainsValue ¶
func (l *Lookup) EnumTypeDefinitionContainsValue(definition document.EnumTypeDefinition, enumValue document.ByteSliceReference) bool
func (*Lookup) EnumTypeDefinitionIterable ¶ added in v1.2.0
func (l *Lookup) EnumTypeDefinitionIterable(refs []int) EnumTypeDefinitionIterable
func (*Lookup) EnumValueDefinitionIterator ¶
func (l *Lookup) EnumValueDefinitionIterator(refs []int) EnumValueDefinitionIterator
func (*Lookup) FieldDefinition ¶ added in v1.3.0
func (l *Lookup) FieldDefinition(ref int) document.FieldDefinition
func (*Lookup) FieldDefinitionByNameFromIndex ¶
func (l *Lookup) FieldDefinitionByNameFromIndex(index []int, name document.ByteSliceReference) (document.FieldDefinition, bool)
func (*Lookup) FieldNamesAndAliasesAreEqual ¶
func (*Lookup) FieldResponseNamesAreEqual ¶
func (*Lookup) FieldSelectionsArePossible ¶
func (l *Lookup) FieldSelectionsArePossible(onTypeName document.ByteSliceReference, selections document.SelectionSet) bool
func (*Lookup) FieldType ¶
func (l *Lookup) FieldType(typeName document.ByteSliceReference, fieldName document.ByteSliceReference) (document.Type, bool)
func (*Lookup) FieldsDefinitionFromNamedType ¶
func (l *Lookup) FieldsDefinitionFromNamedType(name document.ByteSliceReference) (fields []int)
func (*Lookup) FieldsIterator ¶
func (l *Lookup) FieldsIterator(i []int) FieldsIterator
func (*Lookup) FragmentDefinition ¶
func (l *Lookup) FragmentDefinition(i int) document.FragmentDefinition
func (*Lookup) FragmentDefinitionByName ¶
func (l *Lookup) FragmentDefinitionByName(name document.ByteSliceReference) (definition document.FragmentDefinition, index int, valid bool)
func (*Lookup) FragmentDefinitions ¶
func (l *Lookup) FragmentDefinitions() document.FragmentDefinitions
func (*Lookup) FragmentSelectionsArePossible ¶
func (l *Lookup) FragmentSelectionsArePossible(onTypeName document.ByteSliceReference, selections document.SelectionSet) bool
func (*Lookup) FragmentSpread ¶
func (l *Lookup) FragmentSpread(i int) document.FragmentSpread
func (*Lookup) FragmentSpreadIterable ¶
func (l *Lookup) FragmentSpreadIterable(refs []int) FragmentSpreadIterable
func (*Lookup) FragmentSpreads ¶
func (l *Lookup) FragmentSpreads() document.FragmentSpreads
func (*Lookup) FragmentSpreadsDeepEqual ¶
func (l *Lookup) FragmentSpreadsDeepEqual(left, right document.FragmentSpread) bool
func (*Lookup) FragmentSpreadsRootNumFields ¶
func (*Lookup) HasFragmentDefinitions ¶ added in v1.0.1
func (*Lookup) HasOperationDefinitions ¶ added in v1.0.1
func (*Lookup) InlineFragment ¶
func (l *Lookup) InlineFragment(i int) document.InlineFragment
func (*Lookup) InlineFragmentIterable ¶
func (l *Lookup) InlineFragmentIterable(refs []int) InlineFragmentIterable
func (*Lookup) InlineFragmentRootNumFields ¶
func (*Lookup) InlineFragmentsDeepEqual ¶
func (l *Lookup) InlineFragmentsDeepEqual(left, right document.InlineFragment) bool
TODO: add directives
func (*Lookup) InputObjectTypeDefinitionByName ¶
func (l *Lookup) InputObjectTypeDefinitionByName(name document.ByteSliceReference) (document.InputObjectTypeDefinition, bool)
func (*Lookup) InputValueDefinitionByNameAndIndex ¶
func (l *Lookup) InputValueDefinitionByNameAndIndex(name document.ByteSliceReference, i []int) (document.InputValueDefinition, bool)
func (*Lookup) InputValueDefinitionHasDefaultValue ¶
func (l *Lookup) InputValueDefinitionHasDefaultValue(definition document.InputValueDefinition) bool
func (*Lookup) InputValueDefinitionIsRequired ¶
func (l *Lookup) InputValueDefinitionIsRequired(inputValue document.InputValueDefinition) bool
func (*Lookup) InputValueDefinitionIterator ¶
func (l *Lookup) InputValueDefinitionIterator(refs []int) InputValueDefinitionIterator
func (*Lookup) InterfaceTypeDefinitionByName ¶
func (l *Lookup) InterfaceTypeDefinitionByName(name document.ByteSliceReference) (document.InterfaceTypeDefinition, bool)
func (*Lookup) IsFragmentDefinitionUsedInOperation ¶
func (l *Lookup) IsFragmentDefinitionUsedInOperation(name document.ByteSliceReference) bool
func (*Lookup) IsLeafNode ¶
func (l *Lookup) IsLeafNode(typeName document.ByteSliceReference) bool
func (*Lookup) IsUniqueFragmentName ¶
func (l *Lookup) IsUniqueFragmentName(fragmentIndex int, name document.ByteSliceReference) bool
func (*Lookup) MutationObjectTypeDefinition ¶
func (l *Lookup) MutationObjectTypeDefinition() (document.ObjectTypeDefinition, bool)
func (*Lookup) ObjectField ¶
func (l *Lookup) ObjectField(i int) document.ObjectField
func (*Lookup) ObjectFieldByIndexAndName ¶
func (l *Lookup) ObjectFieldByIndexAndName(index []int, name document.ByteSliceReference) (document.ObjectField, bool)
func (*Lookup) ObjectFieldsIterator ¶
func (l *Lookup) ObjectFieldsIterator(refs []int) ObjectFieldsIterator
func (*Lookup) ObjectTypeDefinition ¶ added in v1.2.0
func (l *Lookup) ObjectTypeDefinition(ref int) document.ObjectTypeDefinition
func (*Lookup) ObjectTypeDefinitionByName ¶
func (l *Lookup) ObjectTypeDefinitionByName(name document.ByteSliceReference) (definition document.ObjectTypeDefinition, exists bool)
func (*Lookup) ObjectTypeDefinitionImplementsInterface ¶
func (l *Lookup) ObjectTypeDefinitionImplementsInterface(definition document.ObjectTypeDefinition, interfaceName document.ByteSliceReference) bool
func (*Lookup) ObjectTypeDefinitionIterable ¶ added in v1.2.0
func (l *Lookup) ObjectTypeDefinitionIterable(refs []int) ObjectTypeDefinitionIterable
func (*Lookup) ObjectValue ¶ added in v1.0.1
func (l *Lookup) ObjectValue(ref int) document.ObjectValue
func (*Lookup) OperationDefinition ¶
func (l *Lookup) OperationDefinition(i int) document.OperationDefinition
func (*Lookup) OperationDefinitions ¶
func (l *Lookup) OperationDefinitions() document.OperationDefinitions
func (*Lookup) OperationTypeName ¶
func (l *Lookup) OperationTypeName(definition document.OperationDefinition) document.ByteSliceReference
func (*Lookup) PossibleSelectionTypes ¶
func (l *Lookup) PossibleSelectionTypes(typeName document.ByteSliceReference, possibleTypeNames *[]document.ByteSliceReference)
func (*Lookup) QueryObjectTypeDefinition ¶
func (l *Lookup) QueryObjectTypeDefinition() (document.ObjectTypeDefinition, bool)
func (*Lookup) ScalarTypeDefinitionByName ¶
func (l *Lookup) ScalarTypeDefinitionByName(name document.ByteSliceReference) (document.ScalarTypeDefinition, bool)
func (*Lookup) SelectionSet ¶
func (l *Lookup) SelectionSet(ref int) document.SelectionSet
func (*Lookup) SelectionSetCollectedFields ¶
func (l *Lookup) SelectionSetCollectedFields(set document.SelectionSet, setTypeName document.ByteSliceReference) SelectionSetFieldsIterator
func (*Lookup) SelectionSetContainsFragmentSpread ¶
func (l *Lookup) SelectionSetContainsFragmentSpread(set document.SelectionSet, spreadName document.ByteSliceReference) bool
func (*Lookup) SelectionSetContentsIterator ¶ added in v1.0.1
func (l *Lookup) SelectionSetContentsIterator(ref int) SelectionSetContentsIterator
func (*Lookup) SelectionSetDeepEqual ¶
func (l *Lookup) SelectionSetDeepEqual(left, right document.SelectionSet) bool
func (*Lookup) SelectionSetDifferingSelectionSetIterator ¶
func (l *Lookup) SelectionSetDifferingSelectionSetIterator(set document.SelectionSet, ignoreTypeName document.ByteSliceReference) SelectionSetDifferingSelectionSetIterator
func (*Lookup) SelectionSetHasSelections ¶
func (l *Lookup) SelectionSetHasSelections(set document.SelectionSet) bool
func (*Lookup) SelectionSetNumRootFields ¶
func (l *Lookup) SelectionSetNumRootFields(set document.SelectionSet) int
func (*Lookup) SelectionSetsAreOfSameResponseShape ¶
func (*Lookup) SubscriptionObjectTypeDefinition ¶
func (l *Lookup) SubscriptionObjectTypeDefinition() (document.ObjectTypeDefinition, bool)
func (*Lookup) TypeIsScalarOrEnum ¶
func (l *Lookup) TypeIsScalarOrEnum(name document.ByteSliceReference) bool
func (*Lookup) TypeIsValidFragmentTypeCondition ¶
func (l *Lookup) TypeIsValidFragmentTypeCondition(name document.ByteSliceReference) bool
func (*Lookup) TypeSatisfiesTypeSystemType ¶
func (*Lookup) UnionTypeDefinitionByName ¶
func (l *Lookup) UnionTypeDefinitionByName(name document.ByteSliceReference) (document.UnionTypeDefinition, bool)
func (*Lookup) UnionTypeDefinitionContainsType ¶
func (l *Lookup) UnionTypeDefinitionContainsType(definition document.UnionTypeDefinition, typeName document.ByteSliceReference) bool
func (*Lookup) UnionTypeDefinitionNamesContainingMember ¶
func (l *Lookup) UnionTypeDefinitionNamesContainingMember(memberName document.ByteSliceReference, nameRefs *[]document.ByteSliceReference)
func (*Lookup) UnwrappedNamedType ¶
func (*Lookup) ValueIsValid ¶
func (*Lookup) ValueListsAreEqual ¶
func (*Lookup) ValueObjectsAreEqual ¶
func (*Lookup) ValuesAreEqual ¶
func (*Lookup) VariableDefinition ¶
func (l *Lookup) VariableDefinition(variableName document.ByteSliceReference, variableDefinitionRefs []int) (document.VariableDefinition, bool)
func (*Lookup) VariableDefinitionIterator ¶
func (l *Lookup) VariableDefinitionIterator(refs []int) VariableDefinitionsIterator
type NodeKind ¶
type NodeKind int
ENUM( UNKNOWN QUERY MUTATION SUBSCRIPTION FIELD FRAGMENT_DEFINITION FRAGMENT_SPREAD INLINE_FRAGMENT SCHEMA SCALAR SCALAR_TYPE_DEFINITION OBJECT OBJECT_TYPE_DEFINITION FIELD_DEFINITION ARGUMENT_DEFINITION INTERFACE INTERFACE_TYPE_DEFINITION UNION UNION_TYPE_DEFINITION ENUM ENUM_VALUE ENUM_TYPE_DEFINITION INPUT_OBJECT INPUT_OBJECT_TYPE_DEFINITION INPUT_FIELD_DEFINITION INPUT_VALUE_DEFINITION OPERATION_DEFINITION DIRECTIVE_SET DIRECTIVE DIRECTIVE_DEFINITION SELECTION_SET ARGUMENT ARGUMENT_SET )
const ( // UNKNOWN is a NodeKind of type UNKNOWN UNKNOWN NodeKind = iota // QUERY is a NodeKind of type QUERY QUERY // MUTATION is a NodeKind of type MUTATION MUTATION // SUBSCRIPTION is a NodeKind of type SUBSCRIPTION SUBSCRIPTION // FIELD is a NodeKind of type FIELD FIELD // FRAGMENT_DEFINITION is a NodeKind of type FRAGMENT_DEFINITION FRAGMENT_DEFINITION // FRAGMENT_SPREAD is a NodeKind of type FRAGMENT_SPREAD FRAGMENT_SPREAD // INLINE_FRAGMENT is a NodeKind of type INLINE_FRAGMENT INLINE_FRAGMENT // SCHEMA is a NodeKind of type SCHEMA SCHEMA // SCALAR is a NodeKind of type SCALAR SCALAR // SCALAR_TYPE_DEFINITION is a NodeKind of type SCALAR_TYPE_DEFINITION SCALAR_TYPE_DEFINITION // OBJECT is a NodeKind of type OBJECT OBJECT // OBJECT_TYPE_DEFINITION is a NodeKind of type OBJECT_TYPE_DEFINITION OBJECT_TYPE_DEFINITION // FIELD_DEFINITION is a NodeKind of type FIELD_DEFINITION FIELD_DEFINITION // ARGUMENT_DEFINITION is a NodeKind of type ARGUMENT_DEFINITION ARGUMENT_DEFINITION // INTERFACE is a NodeKind of type INTERFACE INTERFACE // INTERFACE_TYPE_DEFINITION is a NodeKind of type INTERFACE_TYPE_DEFINITION INTERFACE_TYPE_DEFINITION // UNION is a NodeKind of type UNION UNION // UNION_TYPE_DEFINITION is a NodeKind of type UNION_TYPE_DEFINITION UNION_TYPE_DEFINITION // ENUM is a NodeKind of type ENUM ENUM // ENUM_VALUE is a NodeKind of type ENUM_VALUE ENUM_VALUE // ENUM_TYPE_DEFINITION is a NodeKind of type ENUM_TYPE_DEFINITION ENUM_TYPE_DEFINITION // INPUT_OBJECT is a NodeKind of type INPUT_OBJECT INPUT_OBJECT // INPUT_OBJECT_TYPE_DEFINITION is a NodeKind of type INPUT_OBJECT_TYPE_DEFINITION INPUT_OBJECT_TYPE_DEFINITION // INPUT_FIELD_DEFINITION is a NodeKind of type INPUT_FIELD_DEFINITION INPUT_FIELD_DEFINITION // INPUT_VALUE_DEFINITION is a NodeKind of type INPUT_VALUE_DEFINITION INPUT_VALUE_DEFINITION // OPERATION_DEFINITION is a NodeKind of type OPERATION_DEFINITION OPERATION_DEFINITION // DIRECTIVE_SET is a NodeKind of type DIRECTIVE_SET DIRECTIVE_SET // DIRECTIVE is a NodeKind of type DIRECTIVE DIRECTIVE // DIRECTIVE_DEFINITION is a NodeKind of type DIRECTIVE_DEFINITION DIRECTIVE_DEFINITION // SELECTION_SET is a NodeKind of type SELECTION_SET SELECTION_SET // ARGUMENT is a NodeKind of type ARGUMENT ARGUMENT // ARGUMENT_SET is a NodeKind of type ARGUMENT_SET ARGUMENT_SET )
func ParseNodeKind ¶
ParseNodeKind attempts to convert a string to a NodeKind
type NodeUsageInOperationsIterator ¶ added in v1.0.1
type NodeUsageInOperationsIterator struct {
// contains filtered or unexported fields
}
func (*NodeUsageInOperationsIterator) Next ¶ added in v1.0.1
func (n *NodeUsageInOperationsIterator) Next() bool
func (*NodeUsageInOperationsIterator) Value ¶ added in v1.0.1
func (n *NodeUsageInOperationsIterator) Value() int
type ObjectFieldsIterator ¶
type ObjectFieldsIterator struct {
// contains filtered or unexported fields
}
func (*ObjectFieldsIterator) Next ¶
func (o *ObjectFieldsIterator) Next() bool
func (*ObjectFieldsIterator) Value ¶
func (o *ObjectFieldsIterator) Value() (field document.ObjectField, ref int)
type ObjectTypeDefinitionIterable ¶ added in v1.2.0
type ObjectTypeDefinitionIterable struct {
// contains filtered or unexported fields
}
func (*ObjectTypeDefinitionIterable) Next ¶ added in v1.2.0
func (o *ObjectTypeDefinitionIterable) Next() bool
func (*ObjectTypeDefinitionIterable) Value ¶ added in v1.2.0
func (o *ObjectTypeDefinitionIterable) Value() (ref int, definition document.ObjectTypeDefinition)
type OperationDefinitionIterable ¶
type OperationDefinitionIterable struct {
Iterable
}
func (*OperationDefinitionIterable) Value ¶
func (o *OperationDefinitionIterable) Value() document.OperationDefinition
type SelectionSetContentsIterator ¶ added in v1.0.1
type SelectionSetContentsIterator struct {
// contains filtered or unexported fields
}
func (*SelectionSetContentsIterator) Next ¶ added in v1.0.1
func (s *SelectionSetContentsIterator) Next() bool
func (*SelectionSetContentsIterator) Value ¶ added in v1.0.1
func (s *SelectionSetContentsIterator) Value() (kind NodeKind, ref int)
type SelectionSetDifferingSelectionSetIterator ¶
type SelectionSetDifferingSelectionSetIterator struct {
// contains filtered or unexported fields
}
func (*SelectionSetDifferingSelectionSetIterator) Next ¶
func (s *SelectionSetDifferingSelectionSetIterator) Next() bool
func (*SelectionSetDifferingSelectionSetIterator) Value ¶
func (s *SelectionSetDifferingSelectionSetIterator) Value() TypedSet
type SelectionSetFieldsIterator ¶
type SelectionSetFieldsIterator struct {
// contains filtered or unexported fields
}
func (*SelectionSetFieldsIterator) Next ¶
func (s *SelectionSetFieldsIterator) Next() bool
type SelectionSetIterable ¶
type SelectionSetIterable struct {
Iterable
}
func (*SelectionSetIterable) Value ¶
func (s *SelectionSetIterable) Value() (set document.SelectionSet, nodeRef, setRef, parent int)
type TypeSystemDefinitionOrderedRootNodes ¶ added in v1.2.0
type TypeSystemDefinitionOrderedRootNodes struct {
Iterable
}
func (*TypeSystemDefinitionOrderedRootNodes) Value ¶ added in v1.2.0
func (t *TypeSystemDefinitionOrderedRootNodes) Value() (ref int, kind NodeKind)
type VariableDefinitionsIterator ¶
type VariableDefinitionsIterator struct {
// contains filtered or unexported fields
}
func (*VariableDefinitionsIterator) Next ¶
func (v *VariableDefinitionsIterator) Next() bool
func (*VariableDefinitionsIterator) Value ¶
func (v *VariableDefinitionsIterator) Value() (definition document.VariableDefinition, index int)
type Walker ¶
type Walker struct {
// contains filtered or unexported fields
}
func (*Walker) ArgumentSetIterable ¶
func (w *Walker) ArgumentSetIterable() ArgumentSetIterable
func (*Walker) ArgumentsDefinition ¶
func (w *Walker) ArgumentsDefinition(parent int) document.ArgumentsDefinition
func (*Walker) DirectiveDefinitionIterable ¶ added in v1.3.0
func (w *Walker) DirectiveDefinitionIterable() DirectiveDefinitionIterable
func (*Walker) DirectiveSetIterable ¶
func (w *Walker) DirectiveSetIterable() DirectiveSetIterable
func (*Walker) FieldPath ¶ added in v1.3.0
func (w *Walker) FieldPath(parent int) (path []document.ByteSliceReference)
func (*Walker) FieldsContainingDirectiveIterator ¶ added in v1.3.0
func (w *Walker) FieldsContainingDirectiveIterator(directiveNameRef document.ByteSliceReference) FieldsContainingDirectiveIterator
func (*Walker) FieldsIterable ¶
func (w *Walker) FieldsIterable() FieldsIterable
func (*Walker) FragmentDefinitionIterable ¶ added in v1.0.1
func (w *Walker) FragmentDefinitionIterable() FragmentDefinitionIterable
func (*Walker) FragmentUsageInOperations ¶ added in v1.0.1
func (w *Walker) FragmentUsageInOperations(fragmentName document.ByteSliceReference, refs *[]int)
func (*Walker) NodeUsageInOperationsIterator ¶ added in v1.0.1
func (w *Walker) NodeUsageInOperationsIterator(ref int) (iter NodeUsageInOperationsIterator)
func (*Walker) OperationDefinitionIterable ¶
func (w *Walker) OperationDefinitionIterable() OperationDefinitionIterable
func (*Walker) SelectionSetIterable ¶
func (w *Walker) SelectionSetIterable() SelectionSetIterable
func (*Walker) SelectionSetTypeName ¶
func (w *Walker) SelectionSetTypeName(set document.SelectionSet, parent int) (typeName document.ByteSliceReference)
func (*Walker) TypeSystemDefinitionOrderedRootNodes ¶ added in v1.2.0
func (w *Walker) TypeSystemDefinitionOrderedRootNodes() TypeSystemDefinitionOrderedRootNodes
func (*Walker) WalkDirectiveDefinitions ¶ added in v1.2.0
func (*Walker) WalkEnumTypeDefinitions ¶ added in v1.2.0
func (*Walker) WalkExecutable ¶
func (w *Walker) WalkExecutable()
func (*Walker) WalkInputObjectTypeDefinitions ¶ added in v1.2.0
func (*Walker) WalkInputValueDefinitions ¶ added in v1.3.0
func (*Walker) WalkInterfaceTypeDefinitions ¶ added in v1.2.0
func (*Walker) WalkObjectTypeDefinitions ¶ added in v1.2.0
func (*Walker) WalkScalarTypeDefinitions ¶ added in v1.2.0
func (*Walker) WalkSchemaDefinition ¶ added in v1.2.0
func (w *Walker) WalkSchemaDefinition(definition document.SchemaDefinition)
func (*Walker) WalkTypeSystemDefinition ¶ added in v1.2.0
func (w *Walker) WalkTypeSystemDefinition()
func (*Walker) WalkUnionTypeDefinitions ¶ added in v1.2.0
func (*Walker) WalkUpUntilTypeName ¶
func (w *Walker) WalkUpUntilTypeName(from Node, fieldPath *[]document.ByteSliceReference) (typeName document.ByteSliceReference, node Node)