Versions in this module Expand all Collapse all v1 v1.0.4 Aug 16, 2022 v1.0.3 Aug 16, 2022 v1.0.1 Aug 16, 2022 v1.0.0 Aug 16, 2022 Changes in this version + const InvalidRef + var DefaultMutationTypeName = []byte("Mutation") + var DefaultQueryTypeName = []byte("Query") + var DefaultSubscriptionTypeName = []byte("Subscription") + var InvalidNode = Node + func ByteSliceEquals(left ByteSliceReference, leftInput Input, right ByteSliceReference, ...) bool + func FilterIntSliceByWhitelist(intSlice []int, whitelist []int) []int + func IsRootType(nameBytes []byte) bool + type Alias struct + Colon position.Position + IsDefined bool + Name ByteSliceReference + type Argument struct + Colon position.Position + Name ByteSliceReference + Value Value + type ArgumentList struct + LPAREN position.Position + RPAREN position.Position + Refs []int + type BooleanValue bool + type ByteSlice []byte + func (b ByteSlice) Equals(another ByteSlice) bool + func (b ByteSlice) MarshalJSON() ([]byte, error) + func (b ByteSlice) String() string + type ByteSliceReference struct + End uint32 + Start uint32 + func (b ByteSliceReference) Length() uint32 + type ByteSliceReferences []ByteSliceReference + func (b ByteSliceReferences) String(input *Input) string + type ByteSlices []ByteSlice + func (b ByteSlices) String() string + type DefaultValue struct + Equals position.Position + IsDefined bool + Value Value + type Description struct + Content ByteSliceReference + IsBlockString bool + IsDefined bool + Position position.Position + type Directive struct + Arguments ArgumentList + At position.Position + HasArguments bool + Name ByteSliceReference + type DirectiveDefinition struct + ArgumentsDefinition InputValueDefinitionList + At position.Position + Description Description + DirectiveLiteral position.Position + DirectiveLocations DirectiveLocations + HasArgumentsDefinitions bool + Name ByteSliceReference + On position.Position + Repeatable Repeatable + type DirectiveList struct + Refs []int + func (l *DirectiveList) HasDirectiveByName(document *Document, name string) bool + func (l *DirectiveList) RemoveDirectiveByName(document *Document, name string) + type DirectiveLocation int + const DirectiveLocationUnknown + const ExecutableDirectiveLocationField + const ExecutableDirectiveLocationFragmentDefinition + const ExecutableDirectiveLocationFragmentSpread + const ExecutableDirectiveLocationInlineFragment + const ExecutableDirectiveLocationMutation + const ExecutableDirectiveLocationQuery + const ExecutableDirectiveLocationSubscription + const ExecutableDirectiveLocationVariableDefinition + const TypeSystemDirectiveLocationArgumentDefinition + const TypeSystemDirectiveLocationEnum + const TypeSystemDirectiveLocationEnumValue + const TypeSystemDirectiveLocationFieldDefinition + const TypeSystemDirectiveLocationInputFieldDefinition + const TypeSystemDirectiveLocationInputObject + const TypeSystemDirectiveLocationInterface + const TypeSystemDirectiveLocationObject + const TypeSystemDirectiveLocationScalar + const TypeSystemDirectiveLocationSchema + const TypeSystemDirectiveLocationUnion + func (d DirectiveLocation) LiteralBytes() ByteSlice + func (d DirectiveLocation) LiteralString() string + func (d DirectiveLocation) String() string + type DirectiveLocationIterable struct + func (d *DirectiveLocationIterable) Next() bool + func (d *DirectiveLocationIterable) Value() DirectiveLocation + type DirectiveLocations struct + func (d *DirectiveLocations) Get(location DirectiveLocation) bool + func (d *DirectiveLocations) Iterable() DirectiveLocationIterable + func (d *DirectiveLocations) Set(location DirectiveLocation) + func (d *DirectiveLocations) SetFromRaw(bytes []byte) error + func (d *DirectiveLocations) Unset(location DirectiveLocation) + type Document struct + Arguments []Argument + BooleanValues [2]BooleanValue + DirectiveDefinitions []DirectiveDefinition + Directives []Directive + EnumTypeDefinitions []EnumTypeDefinition + EnumTypeExtensions []EnumTypeExtension + EnumValueDefinitions []EnumValueDefinition + EnumValues []EnumValue + FieldDefinitions []FieldDefinition + Fields []Field + FloatValues []FloatValue + FragmentDefinitions []FragmentDefinition + FragmentSpreads []FragmentSpread + Index Index + InlineFragments []InlineFragment + Input Input + InputObjectTypeDefinitions []InputObjectTypeDefinition + InputObjectTypeExtensions []InputObjectTypeExtension + InputValueDefinitions []InputValueDefinition + IntValues []IntValue + InterfaceTypeDefinitions []InterfaceTypeDefinition + InterfaceTypeExtensions []InterfaceTypeExtension + ListValues []ListValue + ObjectFields []ObjectField + ObjectTypeDefinitions []ObjectTypeDefinition + ObjectTypeExtensions []ObjectTypeExtension + ObjectValues []ObjectValue + OperationDefinitions []OperationDefinition + RefIndex int + Refs [][8]int + RootNodes []Node + RootOperationTypeDefinitions []RootOperationTypeDefinition + ScalarTypeDefinitions []ScalarTypeDefinition + ScalarTypeExtensions []ScalarTypeExtension + SchemaDefinitions []SchemaDefinition + SchemaExtensions []SchemaExtension + SelectionSets []SelectionSet + Selections []Selection + StringValues []StringValue + Types []Type + UnionTypeDefinitions []UnionTypeDefinition + UnionTypeExtensions []UnionTypeExtension + Values []Value + VariableDefinitions []VariableDefinition + VariableValues []VariableValue + func NewDocument() *Document + func (d *Document) AddArgument(argument Argument) (ref int) + func (d *Document) AddArgumentToField(fieldRef, argRef int) + func (d *Document) AddDirective(directive Directive) (ref int) + func (d *Document) AddDirectiveDefinition(directiveDefinition DirectiveDefinition) (ref int) + func (d *Document) AddDirectiveToNode(directiveRef int, node Node) bool + func (d *Document) AddEnumTypeDefinition(definition EnumTypeDefinition) (ref int) + func (d *Document) AddEnumValue(value EnumValue) (ref int) + func (d *Document) AddEnumValueDefinition(inputValueDefinition EnumValueDefinition) (ref int) + func (d *Document) AddField(field Field) Node + func (d *Document) AddFieldDefinition(fieldDefinition FieldDefinition) (ref int) + func (d *Document) AddFloatValue(value FloatValue) (ref int) + func (d *Document) AddFragmentSpread(spread FragmentSpread) int + func (d *Document) AddImportedVariableDefinitionToOperationDefinition(operationDefinition, variableDefinition int) + func (d *Document) AddInlineFragment(fragment InlineFragment) int + func (d *Document) AddInputObjectTypeDefinition(definition InputObjectTypeDefinition) (ref int) + func (d *Document) AddInputValueDefinition(inputValueDefinition InputValueDefinition) (ref int) + func (d *Document) AddIntValue(value IntValue) (ref int) + func (d *Document) AddInterfaceTypeDefinition(definition InterfaceTypeDefinition) (ref int) + func (d *Document) AddInterfaceTypeExtension(extension InterfaceTypeExtension) (ref int) + func (d *Document) AddListType(ofType int) (ref int) + func (d *Document) AddListTypeWithPosition(ofType int, open position.Position, close position.Position) (ref int) + func (d *Document) AddListValue(value ListValue) (ref int) + func (d *Document) AddNamedType(name []byte) (ref int) + func (d *Document) AddNamedTypeByNameRef(nameRef ByteSliceReference) (ref int) + func (d *Document) AddNonNullNamedType(name []byte) (ref int) + func (d *Document) AddNonNullType(ofType int) (ref int) + func (d *Document) AddNonNullTypeWithPosition(ofType int, bang position.Position) (ref int) + func (d *Document) AddObjectField(field ObjectField) (ref int) + func (d *Document) AddObjectTypeDefinition(definition ObjectTypeDefinition) (ref int) + func (d *Document) AddObjectTypeDefinitionExtension(extension ObjectTypeExtension) (ref int) + func (d *Document) AddObjectValue(value ObjectValue) (ref int) + func (d *Document) AddOperationDefinitionToRootNodes(definition OperationDefinition) Node + func (d *Document) AddRootNode(node Node) + func (d *Document) AddRootOperationTypeDefinition(rootOperationTypeDefinition RootOperationTypeDefinition) (ref int) + func (d *Document) AddScalarTypeDefinition(definition ScalarTypeDefinition) (ref int) + func (d *Document) AddSchemaDefinition(schemaDefinition SchemaDefinition) (ref int) + func (d *Document) AddSchemaDefinitionRootNode(schemaDefinition SchemaDefinition) + func (d *Document) AddSelection(set int, selection Selection) + func (d *Document) AddSelectionSet() Node + func (d *Document) AddSelectionSetToDocument(set SelectionSet) int + func (d *Document) AddSelectionToDocument(selection Selection) int + func (d *Document) AddStringValue(value StringValue) (ref int) + func (d *Document) AddType(t Type) (ref int) + func (d *Document) AddUnionTypeDefinition(definition UnionTypeDefinition) (ref int) + func (d *Document) AddValue(value Value) (ref int) + func (d *Document) AddVariableDefinitionToOperationDefinition(operationDefinitionRef, variableValueRef, typeRef int) + func (d *Document) AddVariableValue(value VariableValue) (ref int) + func (d *Document) AddVariableValueArgument(argName, variableName []byte) (variableValueRef, argRef int) + func (d *Document) AppendSelectionSet(ref int, appendRef int) + func (d *Document) ArgumentNameBytes(ref int) ByteSlice + func (d *Document) ArgumentNameString(ref int) string + func (d *Document) ArgumentSetsAreEquals(left, right []int) bool + func (d *Document) ArgumentValue(ref int) Value + func (d *Document) ArgumentsAfter(ancestor Node, argument int) []int + func (d *Document) ArgumentsAreEqual(left, right int) bool + func (d *Document) ArgumentsBefore(ancestor Node, argument int) []int + func (d *Document) BooleanValue(ref int) BooleanValue + func (d *Document) BooleanValuesAreEqual(left, right int) bool + func (d *Document) CopyAlias(alias Alias) Alias + func (d *Document) CopyArgument(ref int) int + func (d *Document) CopyArgumentList(list ArgumentList) ArgumentList + func (d *Document) CopyDirective(ref int) int + func (d *Document) CopyDirectiveList(list DirectiveList) DirectiveList + func (d *Document) CopyEnumValue(ref int) int + func (d *Document) CopyField(ref int) int + func (d *Document) CopyFloatValue(ref int) int + func (d *Document) CopyFragmentSpread(ref int) int + func (d *Document) CopyInlineFragment(ref int) int + func (d *Document) CopyIntValue(ref int) int + func (d *Document) CopyListValue(ref int) int + func (d *Document) CopyObjectField(ref int) int + func (d *Document) CopyObjectValue(ref int) int + func (d *Document) CopySelection(ref int) int + func (d *Document) CopySelectionSet(ref int) int + func (d *Document) CopyStringValue(ref int) int + func (d *Document) CopyValue(ref int) int + func (d *Document) CopyVariableValue(ref int) int + func (d *Document) CreateRootOperationTypeDefinition(operationType OperationType, rootNodeRef int) (ref int) + func (d *Document) DeleteRootNode(node Node) + func (d *Document) DeleteRootNodes(nodes []Node) + func (d *Document) DirectiveArgumentInputValueDefinition(directiveName ByteSlice, argumentName ByteSlice) int + func (d *Document) DirectiveArgumentSet(ref int) []int + func (d *Document) DirectiveArgumentValueByName(ref int, name ByteSlice) (Value, bool) + func (d *Document) DirectiveDefinitionArgumentDefaultValueBool(directiveName, argumentName string) bool + func (d *Document) DirectiveDefinitionArgumentDefaultValueFloat32(directiveName, argumentName string) float32 + func (d *Document) DirectiveDefinitionArgumentDefaultValueInt64(directiveName, argumentName string) int64 + func (d *Document) DirectiveDefinitionArgumentDefaultValueString(directiveName, argumentName string) string + func (d *Document) DirectiveDefinitionByName(name string) (int, bool) + func (d *Document) DirectiveDefinitionDescriptionBytes(ref int) ByteSlice + func (d *Document) DirectiveDefinitionDescriptionString(ref int) string + func (d *Document) DirectiveDefinitionNameBytes(ref int) ByteSlice + func (d *Document) DirectiveDefinitionNameString(ref int) string + func (d *Document) DirectiveIsAllowedOnNodeKind(directiveName string, kind NodeKind, operationType OperationType) bool + func (d *Document) DirectiveIsFirst(directive int, ancestor Node) bool + func (d *Document) DirectiveIsLast(directive int, ancestor Node) bool + func (d *Document) DirectiveName(ref int) ByteSliceReference + func (d *Document) DirectiveNameBytes(ref int) ByteSlice + func (d *Document) DirectiveNameString(ref int) string + func (d *Document) DirectiveSetsAreEqual(left, right []int) bool + func (d *Document) DirectivesAreEqual(left, right int) bool + func (d *Document) EmptySelectionSet(ref int) + func (d *Document) EnumTypeDefinitionContainsEnumValue(enumTypeDef int, valueName ByteSlice) bool + func (d *Document) EnumTypeDefinitionDescriptionBytes(ref int) ByteSlice + func (d *Document) EnumTypeDefinitionDescriptionString(ref int) string + func (d *Document) EnumTypeDefinitionHasDirectives(ref int) bool + func (d *Document) EnumTypeDefinitionHasEnumValueDefinition(ref int) bool + func (d *Document) EnumTypeDefinitionNameBytes(ref int) ByteSlice + func (d *Document) EnumTypeDefinitionNameString(ref int) string + func (d *Document) EnumTypeExtensionDescriptionBytes(ref int) ByteSlice + func (d *Document) EnumTypeExtensionDescriptionString(ref int) string + func (d *Document) EnumTypeExtensionHasDirectives(ref int) bool + func (d *Document) EnumTypeExtensionHasEnumValueDefinition(ref int) bool + func (d *Document) EnumTypeExtensionNameBytes(ref int) ByteSlice + func (d *Document) EnumTypeExtensionNameString(ref int) string + func (d *Document) EnumValueDefinitionDescriptionBytes(ref int) ByteSlice + func (d *Document) EnumValueDefinitionDescriptionString(ref int) string + func (d *Document) EnumValueDefinitionDirectiveByName(definitionRef int, directiveName ByteSlice) (ref int, exists bool) + func (d *Document) EnumValueDefinitionDirectives(ref int) (refs []int) + func (d *Document) EnumValueDefinitionHasDirectives(ref int) bool + func (d *Document) EnumValueDefinitionIsFirst(ref int, ancestor Node) bool + func (d *Document) EnumValueDefinitionIsLast(ref int, ancestor Node) bool + func (d *Document) EnumValueDefinitionNameBytes(ref int) ByteSlice + func (d *Document) EnumValueDefinitionNameString(ref int) string + func (d *Document) EnumValueName(ref int) ByteSliceReference + func (d *Document) EnumValueNameBytes(ref int) ByteSlice + func (d *Document) EnumValueNameString(ref int) string + func (d *Document) EnumValuesAreEqual(left, right int) bool + func (d *Document) ExtendEnumTypeDefinitionByEnumTypeExtension(enumTypeDefinitionRef, enumTypeExtensionRef int) + func (d *Document) ExtendInputObjectTypeDefinitionByInputObjectTypeExtension(inputObjectTypeDefinitionRef, inputObjectTypeExtensionRef int) + func (d *Document) ExtendInterfaceTypeDefinitionByInterfaceTypeExtension(interfaceTypeDefinitionRef, interfaceTypeExtensionRef int) + func (d *Document) ExtendObjectTypeDefinitionByObjectTypeExtension(objectTypeDefinitionRef, objectTypeExtensionRef int) + func (d *Document) ExtendScalarTypeDefinitionByScalarTypeExtension(scalarTypeDefinitionRef, scalarTypeExtensionRef int) + func (d *Document) ExtendUnionTypeDefinitionByUnionTypeExtension(unionTypeDefinitionRef, unionTypeExtensionRef int) + func (d *Document) FieldAliasBytes(ref int) ByteSlice + func (d *Document) FieldAliasIsDefined(ref int) bool + func (d *Document) FieldAliasOrNameBytes(ref int) ByteSlice + func (d *Document) FieldAliasOrNameString(ref int) string + func (d *Document) FieldAliasString(ref int) string + func (d *Document) FieldArgument(field int, name ByteSlice) (ref int, exists bool) + func (d *Document) FieldArguments(ref int) []int + func (d *Document) FieldDefinitionArgumentsDefinitions(ref int) []int + func (d *Document) FieldDefinitionDescriptionBytes(ref int) ByteSlice + func (d *Document) FieldDefinitionDescriptionString(ref int) string + func (d *Document) FieldDefinitionDirectiveByName(fieldDefinition int, directiveName ByteSlice) (ref int, exists bool) + func (d *Document) FieldDefinitionDirectives(fieldDefinition int) (refs []int) + func (d *Document) FieldDefinitionHasArgumentsDefinitions(ref int) bool + func (d *Document) FieldDefinitionHasDirectives(ref int) bool + func (d *Document) FieldDefinitionHasNamedDirective(fieldDefinition int, directiveName string) bool + func (d *Document) FieldDefinitionIsFirst(field int, ancestor Node) bool + func (d *Document) FieldDefinitionIsLast(field int, ancestor Node) bool + func (d *Document) FieldDefinitionNameBytes(ref int) ByteSlice + func (d *Document) FieldDefinitionNameString(ref int) string + func (d *Document) FieldDefinitionResolverTypeName(enclosingType Node) ByteSlice + func (d *Document) FieldDefinitionType(ref int) int + func (d *Document) FieldDefinitionTypeNode(ref int) Node + func (d *Document) FieldDefinitionsContainField(definitions []int, field ByteSlice) bool + func (d *Document) FieldDirectives(ref int) []int + func (d *Document) FieldHasArguments(ref int) bool + func (d *Document) FieldHasDirectives(ref int) bool + func (d *Document) FieldHasSelections(ref int) bool + func (d *Document) FieldNameBytes(ref int) ByteSlice + func (d *Document) FieldNameString(ref int) string + func (d *Document) FieldNameUnsafeString(ref int) string + func (d *Document) FieldsAreEqualFlat(left, right int) bool + func (d *Document) FieldsHaveSameShape(left, right int) bool + func (d *Document) FloatValueAsFloat32(ref int) (out float32) + func (d *Document) FloatValueIsNegative(ref int) bool + func (d *Document) FloatValueRaw(ref int) ByteSlice + func (d *Document) FloatValuesAreEqual(left, right int) bool + func (d *Document) FragmentDefinitionIsLastRootNode(ref int) bool + func (d *Document) FragmentDefinitionIsUsed(name ByteSlice) bool + func (d *Document) FragmentDefinitionNameBytes(ref int) ByteSlice + func (d *Document) FragmentDefinitionNameString(ref int) string + func (d *Document) FragmentDefinitionRef(byName ByteSlice) (ref int, exists bool) + func (d *Document) FragmentDefinitionTypeName(ref int) ByteSlice + func (d *Document) FragmentSpreadNameBytes(ref int) ByteSlice + func (d *Document) FragmentSpreadNameString(ref int) string + func (d *Document) GenerateUnusedVariableDefinitionName(operationDefinition int) []byte + func (d *Document) HasSchemaDefinition() bool + func (d *Document) ImportAndExtendEnumTypeDefinitionByEnumTypeExtension(enumTypeExtensionRef int) + func (d *Document) ImportAndExtendInputObjectTypeDefinitionByInputObjectTypeExtension(inputObjectTypeExtensionRef int) + func (d *Document) ImportAndExtendInterfaceTypeDefinitionByInterfaceTypeExtension(interfaceTypeExtensionRef int) + func (d *Document) ImportAndExtendObjectTypeDefinitionByObjectTypeExtension(objectTypeExtensionRef int) + func (d *Document) ImportAndExtendScalarTypeDefinitionByScalarTypeExtension(scalarTypeExtensionRef int) + func (d *Document) ImportAndExtendUnionTypeDefinitionByUnionTypeExtension(unionTypeExtensionRef int) + func (d *Document) ImportArgument(name string, value Value) (ref int) + func (d *Document) ImportDescription(desc string) (description Description) + func (d *Document) ImportDirective(name string, argRefs []int) (ref int) + func (d *Document) ImportDirectiveDefinition(name, description string, argsRefs []int, locations []string) (ref int) + func (d *Document) ImportEnumTypeDefinition(name, description string, valueRefs []int) (ref int) + func (d *Document) ImportEnumTypeDefinitionWithDirectives(name, description string, valueRefs []int, directiveRefs []int) (ref int) + func (d *Document) ImportEnumValue(name ByteSlice) (ref int) + func (d *Document) ImportEnumValueDefinition(value, description string, directiveRefs []int) (ref int) + func (d *Document) ImportFieldDefinition(name, description string, typeRef int, argsRefs []int, directiveRefs []int) (ref int) + func (d *Document) ImportFloatValue(raw ByteSlice, isNegative bool) (ref int) + func (d *Document) ImportInputObjectTypeDefinition(name, description string, argsRefs []int) (ref int) + func (d *Document) ImportInputObjectTypeDefinitionWithDirectives(name, description string, argsRefs []int, directiveRefs []int) (ref int) + func (d *Document) ImportInputValueDefinition(name, description string, typeRef int, defaultValue DefaultValue) (ref int) + func (d *Document) ImportIntValue(raw ByteSlice, isNegative bool) (ref int) + func (d *Document) ImportInterfaceTypeDefinition(name, description string, fieldRefs []int) (ref int) + func (d *Document) ImportInterfaceTypeDefinitionWithDirectives(name, description string, fieldRefs []int, iRefs []int, directiveRefs []int) (ref int) + func (d *Document) ImportListValue(valueRefs []int) (ref int) + func (d *Document) ImportObjectField(name ByteSlice, value Value) (ref int) + func (d *Document) ImportObjectTypeDefinition(name, description string, fieldRefs []int, iRefs []int) (ref int) + func (d *Document) ImportObjectTypeDefinitionWithDirectives(name, description string, fieldRefs []int, iRefs []int, directiveRefs []int) (ref int) + func (d *Document) ImportObjectValue(fieldRefs []int) (ref int) + func (d *Document) ImportRootNode(ref int, kind NodeKind) + func (d *Document) ImportRootOperationTypeDefinition(name string, operationType OperationType) (ref int) + func (d *Document) ImportRootOperationTypeDefinitions(queryTypeName, mutationTypeName, subscriptionTypeName string) (refs []int) + func (d *Document) ImportScalarTypeDefinition(name, description string) (ref int) + func (d *Document) ImportScalarTypeDefinitionWithDirectives(name, description string, directiveRefs []int) (ref int) + func (d *Document) ImportSchemaDefinition(queryTypeName, mutationTypeName, subscriptionTypeName string) + func (d *Document) ImportStringValue(raw ByteSlice, isBlockString bool) (ref int) + func (d *Document) ImportUnionTypeDefinition(name, description string, typeRefs []int) (ref int) + func (d *Document) ImportUnionTypeDefinitionWithDirectives(name, description string, typeRefs []int, directiveRefs []int) (ref int) + func (d *Document) ImportVariableValue(name ByteSlice) (ref int) + func (d *Document) ImportVariableValueArgument(argName, variableName ByteSlice) (variableValueRef, argRef int) + func (d *Document) InlineFragmentHasDirectives(ref int) bool + func (d *Document) InlineFragmentHasTypeCondition(ref int) bool + func (d *Document) InlineFragmentSelections(ref int) []int + func (d *Document) InlineFragmentTypeConditionName(ref int) ByteSlice + func (d *Document) InlineFragmentTypeConditionNameString(ref int) string + func (d *Document) InputObjectTypeDefinitionDescriptionBytes(ref int) ByteSlice + func (d *Document) InputObjectTypeDefinitionDescriptionString(ref int) string + func (d *Document) InputObjectTypeDefinitionInputValueDefinitionByName(definition int, inputValueDefinitionName ByteSlice) int + func (d *Document) InputObjectTypeDefinitionInputValueDefinitionDefaultValue(inputObjectTypeDefinitionName, inputValueDefinitionName string) Value + func (d *Document) InputObjectTypeDefinitionInputValueDefinitionDefaultValueBool(inputObjectTypeDefinitionName, inputValueDefinitionName string) bool + func (d *Document) InputObjectTypeDefinitionInputValueDefinitionDefaultValueFloat32(inputObjectTypeDefinitionName, inputValueDefinitionName string) float32 + func (d *Document) InputObjectTypeDefinitionInputValueDefinitionDefaultValueInt64(inputObjectTypeDefinitionName, inputValueDefinitionName string) int64 + func (d *Document) InputObjectTypeDefinitionInputValueDefinitionDefaultValueString(inputObjectTypeDefinitionName, inputValueDefinitionName string) string + func (d *Document) InputObjectTypeDefinitionNameBytes(ref int) ByteSlice + func (d *Document) InputObjectTypeDefinitionNameString(ref int) string + func (d *Document) InputObjectTypeExtensionDescriptionBytes(ref int) ByteSlice + func (d *Document) InputObjectTypeExtensionDescriptionString(ref int) string + func (d *Document) InputObjectTypeExtensionHasDirectives(ref int) bool + func (d *Document) InputObjectTypeExtensionHasInputFieldsDefinition(ref int) bool + func (d *Document) InputObjectTypeExtensionNameBytes(ref int) ByteSlice + func (d *Document) InputObjectTypeExtensionNameString(ref int) string + func (d *Document) InputValueDefinitionArgumentIsOptional(ref int) bool + func (d *Document) InputValueDefinitionDefaultValue(ref int) Value + func (d *Document) InputValueDefinitionDescriptionBytes(ref int) ByteSlice + func (d *Document) InputValueDefinitionDescriptionString(ref int) string + func (d *Document) InputValueDefinitionHasDefaultValue(ref int) bool + func (d *Document) InputValueDefinitionHasDirective(ref int, directiveName ByteSlice) bool + func (d *Document) InputValueDefinitionIsFirst(inputValue int, ancestor Node) bool + func (d *Document) InputValueDefinitionIsLast(inputValue int, ancestor Node) bool + func (d *Document) InputValueDefinitionNameBytes(ref int) ByteSlice + func (d *Document) InputValueDefinitionNameString(ref int) string + func (d *Document) InputValueDefinitionType(ref int) int + func (d *Document) IntValue(ref int) IntValue + func (d *Document) IntValueAsInt(ref int) (out int64) + func (d *Document) IntValueAsInt32(ref int) (out int32) + func (d *Document) IntValueIsNegative(ref int) bool + func (d *Document) IntValueRaw(ref int) ByteSlice + func (d *Document) IntValuesAreEquals(left, right int) bool + func (d *Document) InterfaceTypeDefinitionDescriptionBytes(ref int) ByteSlice + func (d *Document) InterfaceTypeDefinitionDescriptionString(ref int) string + func (d *Document) InterfaceTypeDefinitionImplementedByRootNodes(ref int) []Node + func (d *Document) InterfaceTypeDefinitionImplementsInterface(definitionRef int, interfaceName ByteSlice) bool + func (d *Document) InterfaceTypeDefinitionNameBytes(ref int) ByteSlice + func (d *Document) InterfaceTypeDefinitionNameString(ref int) string + func (d *Document) InterfaceTypeExtensionDescriptionBytes(ref int) ByteSlice + func (d *Document) InterfaceTypeExtensionDescriptionString(ref int) string + func (d *Document) InterfaceTypeExtensionHasDirectives(ref int) bool + func (d *Document) InterfaceTypeExtensionHasFieldDefinitions(ref int) bool + func (d *Document) InterfaceTypeExtensionNameBytes(ref int) ByteSlice + func (d *Document) InterfaceTypeExtensionNameString(ref int) string + func (d *Document) ListValuesAreEqual(left, right int) bool + func (d *Document) NewEmptyRefs() []int + func (d *Document) NextRefIndex() int + func (d *Document) NodeByName(name ByteSlice) (Node, bool) + func (d *Document) NodeByNameStr(name string) (Node, bool) + func (d *Document) NodeDirectiveLocation(node Node) (location DirectiveLocation, err error) + func (d *Document) NodeDirectives(node Node) []int + func (d *Document) NodeFieldDefinitionArgumentDefinitionByName(node Node, fieldName, argumentName ByteSlice) int + func (d *Document) NodeFieldDefinitionArgumentsDefinitions(node Node, fieldName ByteSlice) []int + func (d *Document) NodeFieldDefinitionByName(node Node, fieldName ByteSlice) (definition int, exists bool) + func (d *Document) NodeFieldDefinitions(node Node) []int + func (d *Document) NodeFragmentIsAllowedOnInterfaceTypeDefinition(fragmentNode, interfaceTypeNode Node) bool + func (d *Document) NodeFragmentIsAllowedOnNode(fragmentNode, onNode Node) bool + func (d *Document) NodeFragmentIsAllowedOnObjectTypeDefinition(fragmentNode, objectTypeNode Node) bool + func (d *Document) NodeFragmentIsAllowedOnUnionTypeDefinition(fragmentNode, unionTypeNode Node) bool + func (d *Document) NodeHasDirectiveByNameString(node Node, directiveName string) bool + func (d *Document) NodeImplementsInterface(node Node, interfaceNode Node) bool + func (d *Document) NodeInputFieldDefinitionByName(node Node, name ByteSlice) (int, bool) + func (d *Document) NodeInputFieldDefinitions(node Node) []int + func (d *Document) NodeInputValueDefinitions(node Node) []int + func (d *Document) NodeInterfaceRefs(node Node) (refs []int) + func (d *Document) NodeIsLastRootNode(node Node) bool + func (d *Document) NodeIsUnionMember(node Node, union Node) bool + func (d *Document) NodeKindNameBytes(node Node) ByteSlice + func (d *Document) NodeNameBytes(node Node) ByteSlice + func (d *Document) NodeNameString(node Node) string + func (d *Document) NodeNameUnsafeString(node Node) string + func (d *Document) NodeResolverTypeNameBytes(node Node, path Path) ByteSlice + func (d *Document) NodeResolverTypeNameString(node Node, path Path) string + func (d *Document) NodeUnionMemberRefs(node Node) (refs []int) + func (d *Document) NumOfOperationDefinitions() (n int) + func (d *Document) ObjectField(ref int) ObjectField + func (d *Document) ObjectFieldNameBytes(ref int) ByteSlice + func (d *Document) ObjectFieldNameString(ref int) string + func (d *Document) ObjectFieldValue(ref int) Value + func (d *Document) ObjectFieldsAreEqual(left, right int) bool + func (d *Document) ObjectTypeDefinitionHasField(ref int, fieldName []byte) bool + func (d *Document) ObjectTypeDefinitionImplementsInterface(definitionRef int, interfaceName ByteSlice) bool + func (d *Document) ObjectTypeDefinitionNameBytes(ref int) ByteSlice + func (d *Document) ObjectTypeDefinitionNameRef(ref int) ByteSliceReference + func (d *Document) ObjectTypeDefinitionNameString(ref int) string + func (d *Document) ObjectTypeDescriptionNameBytes(ref int) ByteSlice + func (d *Document) ObjectTypeDescriptionNameString(ref int) string + func (d *Document) ObjectTypeExtensionDescriptionNameBytes(ref int) ByteSlice + func (d *Document) ObjectTypeExtensionDescriptionNameString(ref int) string + func (d *Document) ObjectTypeExtensionHasDirectives(ref int) bool + func (d *Document) ObjectTypeExtensionHasFieldDefinitions(ref int) bool + func (d *Document) ObjectTypeExtensionNameBytes(ref int) ByteSlice + func (d *Document) ObjectTypeExtensionNameString(ref int) string + func (d *Document) ObjectValuesAreEqual(left, right int) bool + func (d *Document) OperationDefinitionHasVariableDefinition(ref int, variableName string) bool + func (d *Document) OperationDefinitionNameBytes(ref int) ByteSlice + func (d *Document) OperationDefinitionNameString(ref int) string + func (d *Document) OperationNameExists(operationName string) bool + func (d *Document) PrintArgument(ref int, w io.Writer) error + func (d *Document) PrintArguments(refs []int, w io.Writer) (err error) + func (d *Document) PrintDescription(description Description, indent []byte, depth int, writer io.Writer) (err error) + func (d *Document) PrintDirective(ref int, w io.Writer) error + func (d *Document) PrintSelections(selections []int) (out string) + func (d *Document) PrintType(ref int, w io.Writer) error + func (d *Document) PrintTypeBytes(ref int, buf []byte) ([]byte, error) + func (d *Document) PrintValue(value Value, w io.Writer) (err error) + func (d *Document) PrintValueBytes(value Value, buf []byte) ([]byte, error) + func (d *Document) RemoveDirectiveFromNode(node Node, directiveRef int) + func (d *Document) RemoveDirectivesFromNode(node Node, directiveRefs []int) + func (d *Document) RemoveFieldAlias(ref int) + func (d *Document) RemoveFieldDefinitionsFromObjectTypeDefinition(fieldDefinitionRefs []int, objectTypeDefinitionRef int) + func (d *Document) RemoveFromSelectionSet(ref int, index int) + func (d *Document) RemoveMergedTypeExtensions() + func (d *Document) RemoveNodeFromNode(remove, from Node) + func (d *Document) RemoveNodeFromSelectionSet(set int, node Node) + func (d *Document) RemoveObjectTypeDefinition(name ByteSlice) bool + func (d *Document) RemoveRootNode(node Node) + func (d *Document) ReplaceFragmentSpread(selectionSet int, spreadRef int, replaceWithSelectionSet int) + func (d *Document) ReplaceFragmentSpreadWithInlineFragment(selectionSet int, spreadRef int, replaceWithSelectionSet int, ...) + func (d *Document) ReplaceRootOperationTypeDefinition(name string, operationType OperationType) (ref int, ok bool) + func (d *Document) ReplaceRootOperationTypesOfSchemaDefinition(schemaDefinitionRef int, ...) + func (d *Document) ReplaceSelectionOnSelectionSet(ref, replace, with int) + func (d *Document) Reset() + func (d *Document) ResolveListOrNameType(ref int) (typeRef int) + func (d *Document) ResolveTypeNameBytes(ref int) ByteSlice + func (d *Document) ResolveTypeNameString(ref int) string + func (d *Document) ResolveUnderlyingType(ref int) (typeRef int) + func (d *Document) RootOperationTypeDefinitionIsFirstInSchemaDefinition(ref int, ancestor Node) bool + func (d *Document) RootOperationTypeDefinitionIsLastInSchemaDefinition(ref int, ancestor Node) bool + func (d *Document) RootOperationTypeDefinitionNameString(ref int) string + func (d *Document) ScalarTypeDefinitionDescriptionBytes(ref int) ByteSlice + func (d *Document) ScalarTypeDefinitionDescriptionString(ref int) string + func (d *Document) ScalarTypeDefinitionHasDirectives(ref int) bool + func (d *Document) ScalarTypeDefinitionNameBytes(ref int) ByteSlice + func (d *Document) ScalarTypeDefinitionNameString(ref int) string + func (d *Document) ScalarTypeExtensionDescriptionBytes(ref int) ByteSlice + func (d *Document) ScalarTypeExtensionDescriptionString(ref int) string + func (d *Document) ScalarTypeExtensionHasDirectives(ref int) bool + func (d *Document) ScalarTypeExtensionNameBytes(ref int) ByteSlice + func (d *Document) ScalarTypeExtensionNameString(ref int) string + func (d *Document) SchemaDefinitionRef() int + func (d *Document) SelectionSetHasFieldSelectionWithNameOrAliasBytes(set int, nameOrAlias []byte) bool + func (d *Document) SelectionSetHasFieldSelectionWithNameOrAliasString(set int, nameOrAlias string) bool + func (d *Document) SelectionsAfter(selectionKind SelectionKind, selectionRef int, selectionSet Node) bool + func (d *Document) SelectionsAfterField(field int, selectionSet Node) bool + func (d *Document) SelectionsAfterFragmentSpread(fragmentSpread int, selectionSet Node) bool + func (d *Document) SelectionsAfterInlineFragment(inlineFragment int, selectionSet Node) bool + func (d *Document) SelectionsBeforeField(field int, selectionSet Node) bool + func (d *Document) StringValue(ref int) StringValue + func (d *Document) StringValueContentBytes(ref int) ByteSlice + func (d *Document) StringValueContentString(ref int) string + func (d *Document) StringValueIsBlockString(ref int) bool + func (d *Document) StringValuesAreEquals(left, right int) bool + func (d *Document) TypeDefinitionContainsImplementsInterface(typeName, interfaceName ByteSlice) bool + func (d *Document) TypeIsEnum(ref int, definition *Document) bool + func (d *Document) TypeIsList(ref int) bool + func (d *Document) TypeIsNonNull(ref int) bool + func (d *Document) TypeIsScalar(ref int, definition *Document) bool + func (d *Document) TypeNameBytes(ref int) ByteSlice + func (d *Document) TypeNameString(ref int) string + func (d *Document) TypesAreCompatibleDeep(left int, right int) bool + func (d *Document) TypesAreEqualDeep(left int, right int) bool + func (d *Document) UnionMemberTypeIsFirst(ref int, ancestor Node) bool + func (d *Document) UnionMemberTypeIsLast(ref int, ancestor Node) bool + func (d *Document) UnionNodeIntersectsInterfaceNode(unionNode, interfaceNode Node) bool + func (d *Document) UnionTypeDefinitionDescriptionBytes(ref int) ByteSlice + func (d *Document) UnionTypeDefinitionDescriptionString(ref int) string + func (d *Document) UnionTypeDefinitionHasDirectives(ref int) bool + func (d *Document) UnionTypeDefinitionHasField(ref int, fieldName []byte) bool + func (d *Document) UnionTypeDefinitionNameBytes(ref int) ByteSlice + func (d *Document) UnionTypeDefinitionNameString(ref int) string + func (d *Document) UnionTypeExtensionDescriptionBytes(ref int) ByteSlice + func (d *Document) UnionTypeExtensionDescriptionString(ref int) string + func (d *Document) UnionTypeExtensionHasDirectives(ref int) bool + func (d *Document) UnionTypeExtensionHasUnionMemberTypes(ref int) bool + func (d *Document) UnionTypeExtensionNameBytes(ref int) ByteSlice + func (d *Document) UnionTypeExtensionNameString(ref int) string + func (d *Document) UpdateRootNode(ref int, newNodeRef int, newNodeKind NodeKind) + func (d *Document) Value(ref int) Value + func (d *Document) ValueContainsVariable(value Value) bool + func (d *Document) ValueContentBytes(value Value) ByteSlice + func (d *Document) ValueContentString(value Value) string + func (d *Document) ValueToJSON(value Value) ([]byte, error) + func (d *Document) ValuesAreEqual(left, right Value) bool + func (d *Document) VariableDefinitionByNameAndOperation(operationDefinition int, name ByteSlice) (definition int, exists bool) + func (d *Document) VariableDefinitionDefaultValue(ref int) Value + func (d *Document) VariableDefinitionHasDefaultValue(ref int) bool + func (d *Document) VariableDefinitionNameBytes(ref int) ByteSlice + func (d *Document) VariableDefinitionNameString(ref int) string + func (d *Document) VariableDefinitionsAfter(variableDefinition int) bool + func (d *Document) VariableDefinitionsBefore(variableDefinition int) bool + func (d *Document) VariableValueNameBytes(ref int) ByteSlice + func (d *Document) VariableValueNameString(ref int) string + func (d *Document) VariableValuesAreEqual(left, right int) bool + type EnumTypeDefinition struct + Description Description + Directives DirectiveList + EnumLiteral position.Position + EnumValuesDefinition EnumValueDefinitionList + HasDirectives bool + HasEnumValuesDefinition bool + Name ByteSliceReference + type EnumTypeExtension struct + ExtendLiteral position.Position + type EnumValue struct + Name ByteSliceReference + type EnumValueDefinition struct + Description Description + Directives DirectiveList + EnumValue ByteSliceReference + HasDirectives bool + type EnumValueDefinitionList struct + LBRACE position.Position + RBRACE position.Position + Refs []int + type Field struct + Alias Alias + Arguments ArgumentList + Directives DirectiveList + HasArguments bool + HasDirectives bool + HasSelections bool + Name ByteSliceReference + Position position.Position + SelectionSet int + type FieldDefinition struct + ArgumentsDefinition InputValueDefinitionList + Colon position.Position + Description Description + Directives DirectiveList + HasArgumentsDefinitions bool + HasDirectives bool + Name ByteSliceReference + Type int + type FieldDefinitionList struct + LBRACE position.Position + RBRACE position.Position + Refs []int + type FloatValue struct + Negative bool + NegativeSign position.Position + Raw ByteSliceReference + type FragmentDefinition struct + Directives DirectiveList + FragmentLiteral position.Position + HasSelections bool + Name ByteSliceReference + SelectionSet int + TypeCondition TypeCondition + type FragmentSpread struct + Directives DirectiveList + FragmentName ByteSliceReference + HasDirectives bool + Spread position.Position + type Index struct + MergedTypeExtensions []Node + MutationTypeName ByteSlice + QueryTypeName ByteSlice + ReplacedFragmentSpreads []int + SubscriptionTypeName ByteSlice + func (i *Index) AddNodeBytes(name []byte, node Node) + func (i *Index) AddNodeStr(name string, node Node) + func (i *Index) FirstNodeByNameBytes(name []byte) (Node, bool) + func (i *Index) FirstNodeByNameStr(name string) (Node, bool) + func (i *Index) FirstNonExtensionNodeByNameBytes(name []byte) (Node, bool) + func (i *Index) IsRootOperationTypeNameBytes(typeName []byte) bool + func (i *Index) IsRootOperationTypeNameString(typeName string) bool + func (i *Index) NodesByNameBytes(name []byte) ([]Node, bool) + func (i *Index) NodesByNameStr(name string) ([]Node, bool) + func (i *Index) RemoveNodeByName(name []byte) + func (i *Index) ReplaceNode(name []byte, oldNode Node, newNode Node) + func (i *Index) Reset() + type InlineFragment struct + Directives DirectiveList + HasDirectives bool + HasSelections bool + SelectionSet int + Spread position.Position + TypeCondition TypeCondition + type Input struct + InputPosition int + Length int + RawBytes []byte + TextPosition position.Position + Variables []byte + func (i *Input) AppendInputBytes(bytes []byte) (ref ByteSliceReference) + func (i *Input) AppendInputString(input string) ByteSliceReference + func (i *Input) ByteSlice(reference ByteSliceReference) ByteSlice + func (i *Input) ByteSliceReferenceContentEquals(left, right ByteSliceReference) bool + func (i *Input) ByteSliceString(reference ByteSliceReference) string + func (i *Input) Reset() + func (i *Input) ResetInputBytes(bytes []byte) + func (i *Input) ResetInputString(input string) + type InputObjectTypeDefinition struct + Description Description + Directives DirectiveList + HasDirectives bool + HasInputFieldsDefinition bool + InputFieldsDefinition InputValueDefinitionList + InputLiteral position.Position + Name ByteSliceReference + type InputObjectTypeExtension struct + ExtendLiteral position.Position + type InputValueDefinition struct + Colon position.Position + DefaultValue DefaultValue + Description Description + Directives DirectiveList + HasDirectives bool + Name ByteSliceReference + Type int + type InputValueDefinitionList struct + LPAREN position.Position + RPAREN position.Position + Refs []int + type IntValue struct + Negative bool + NegativeSign position.Position + Raw ByteSliceReference + type InterfaceTypeDefinition struct + Description Description + Directives DirectiveList + FieldsDefinition FieldDefinitionList + HasDirectives bool + HasFieldDefinitions bool + ImplementsInterfaces TypeList + InterfaceLiteral position.Position + Name ByteSliceReference + type InterfaceTypeExtension struct + ExtendLiteral position.Position + type ListValue struct + LBRACK position.Position + RBRACK position.Position + Refs []int + type Node struct + Kind NodeKind + Ref int + func (n *Node) IsExtensionKind() bool + func (n Node) NameBytes(definition *Document) []byte + func (n Node) NameString(definition *Document) string + type NodeKind int + const NodeKindArgument + const NodeKindDirective + const NodeKindDirectiveDefinition + const NodeKindEnumTypeDefinition + const NodeKindEnumTypeExtension + const NodeKindEnumValueDefinition + const NodeKindField + const NodeKindFieldDefinition + const NodeKindFragmentDefinition + const NodeKindFragmentSpread + const NodeKindInlineFragment + const NodeKindInputObjectTypeDefinition + const NodeKindInputObjectTypeExtension + const NodeKindInputValueDefinition + const NodeKindInterfaceTypeDefinition + const NodeKindInterfaceTypeExtension + const NodeKindObjectTypeDefinition + const NodeKindObjectTypeExtension + const NodeKindOperationDefinition + const NodeKindScalarTypeDefinition + const NodeKindScalarTypeExtension + const NodeKindSchemaDefinition + const NodeKindSchemaExtension + const NodeKindSelectionSet + const NodeKindUnionMemberType + const NodeKindUnionTypeDefinition + const NodeKindUnionTypeExtension + const NodeKindUnknown + const NodeKindVariableDefinition + func (i NodeKind) String() string + type ObjectField struct + Colon position.Position + Name ByteSliceReference + Value Value + type ObjectTypeDefinition struct + Description Description + Directives DirectiveList + FieldsDefinition FieldDefinitionList + HasDirectives bool + HasFieldDefinitions bool + ImplementsInterfaces TypeList + Name ByteSliceReference + TypeLiteral position.Position + type ObjectTypeExtension struct + ExtendLiteral position.Position + type ObjectValue struct + LBRACE position.Position + RBRACE position.Position + Refs []int + type OperationDefinition struct + Directives DirectiveList + HasDirectives bool + HasSelections bool + HasVariableDefinitions bool + Name ByteSliceReference + OperationType OperationType + OperationTypeLiteral position.Position + SelectionSet int + VariableDefinitions VariableDefinitionList + type OperationType int + const OperationTypeMutation + const OperationTypeQuery + const OperationTypeSubscription + const OperationTypeUnknown + func (i OperationType) String() string + type Path []PathItem + func (p Path) DotDelimitedString() string + func (p Path) Equals(another Path) bool + func (p Path) String() string + type PathItem struct + ArrayIndex int + FieldName ByteSlice + Kind PathKind + func (p *PathItem) UnmarshalJSON(data []byte) error + func (p PathItem) MarshalJSON() ([]byte, error) + type PathKind int + const ArrayIndex + const FieldName + const UnknownPathKind + func (i PathKind) String() string + type Repeatable struct + IsRepeatable bool + Position position.Position + type RootOperationTypeDefinition struct + Colon position.Position + NamedType Type + OperationType OperationType + type RootOperationTypeDefinitionList struct + LBrace position.Position + RBrace position.Position + Refs []int + type ScalarTypeDefinition struct + Description Description + Directives DirectiveList + HasDirectives bool + Name ByteSliceReference + ScalarLiteral position.Position + type ScalarTypeExtension struct + ExtendLiteral position.Position + type SchemaDefinition struct + Directives DirectiveList + HasDirectives bool + RootOperationTypeDefinitions RootOperationTypeDefinitionList + SchemaLiteral position.Position + func (s *SchemaDefinition) AddRootOperationTypeDefinitionRefs(refs ...int) + type SchemaExtension struct + ExtendLiteral position.Position + type Selection struct + Kind SelectionKind + Ref int + type SelectionKind int + const SelectionKindField + const SelectionKindFragmentSpread + const SelectionKindInlineFragment + const SelectionKindUnknown + func (i SelectionKind) String() string + type SelectionSet struct + LBrace position.Position + RBrace position.Position + SelectionRefs []int + type StringValue struct + BlockString bool + Content ByteSliceReference + type Type struct + Bang position.Position + Close position.Position + Name ByteSliceReference + OfType int + Open position.Position + TypeKind TypeKind + type TypeCondition struct + On position.Position + Type int + type TypeKind int + const TypeKindList + const TypeKindNamed + const TypeKindNonNull + const TypeKindUnknown + func (i TypeKind) String() string + type TypeList struct + Refs []int + type UnionTypeDefinition struct + Description Description + Directives DirectiveList + Equals position.Position + FieldsDefinition FieldDefinitionList + HasDirectives bool + HasFieldDefinitions bool + HasUnionMemberTypes bool + Name ByteSliceReference + UnionLiteral position.Position + UnionMemberTypes TypeList + type UnionTypeExtension struct + ExtendLiteral position.Position + type Value struct + Kind ValueKind + Ref int + type ValueKind int + const ValueKindBoolean + const ValueKindEnum + const ValueKindFloat + const ValueKindInteger + const ValueKindList + const ValueKindNull + const ValueKindObject + const ValueKindString + const ValueKindUnknown + const ValueKindVariable + func (i ValueKind) String() string + type VariableDefinition struct + Colon position.Position + DefaultValue DefaultValue + Directives DirectiveList + HasDirectives bool + Type int + VariableValue Value + type VariableDefinitionList struct + LPAREN position.Position + RPAREN position.Position + Refs []int + type VariableValue struct + Dollar position.Position + Name ByteSliceReference