Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/vektah/gqlparser
/ functions
Functions
429 in github.com/vektah/gqlparser
⨍
Functions
429
◇
Types & classes
86
↓ 3 callers
Method
FormatValue
(value *ast.Value)
formatter/formatter.go:814
↓ 3 callers
Method
GetRuleNameKeys
GetRuleNameKeys is a test helper to access the private field ruleNameKeys. This returns a copy of the ruleNameKeys slice, not the original slice.
validator/rules/rules_export_test.go:5
↓ 3 callers
Method
IsCompositeType
()
ast/definition.go:56
↓ 3 callers
Method
IsInputType
()
ast/definition.go:60
↓ 3 callers
Function
NewFormatter
(w io.Writer, options ...FormatterOption)
formatter/formatter.go:67
↓ 3 callers
Method
OnFragmentSpread
(f func(walker *Walker, fragmentSpread *ast.FragmentSpread))
validator/core/walk.go:38
↓ 3 callers
Method
ReadToken
ReadToken gets the next token from the source starting at the given position. This skips over whitespace and comments until it finds the next lexable
lexer/lexer.go:78
↓ 3 callers
Function
SuggestionList
Given an invalid input string and a list of valid options, returns a filtered list of valid options sorted based on their similarity with the input.
validator/core/helpers.go:99
↓ 3 callers
Function
Wrap
(err error)
gqlerror/error.go:130
↓ 3 callers
Method
collectConflictsBetween
( conflicts *conflictMessageContainer, parentFieldsAreMutuallyExclusive bool, fieldsMapA *sequentialFieldsM
validator/rules/overlapping_fields_can_be_merged.go:454
↓ 3 callers
Method
collectConflictsBetweenFieldsAndFragment
( conflicts *conflictMessageContainer, areMutuallyExclusive bool, fieldsMap *sequentialFieldsMap, fragment
validator/rules/overlapping_fields_can_be_merged.go:288
↓ 3 callers
Function
executeGoldenTesting
(t *testing.T, cfg *goldenConfig)
formatter/formatter_test.go:185
↓ 3 callers
Function
f
()
validator/imported/export.js:70
↓ 3 callers
Function
isValidKind
(kind DefinitionKind, valid ...DefinitionKind)
validator/schema.go:722
↓ 3 callers
Function
kindList
(kinds ...DefinitionKind)
validator/schema.go:726
↓ 3 callers
Function
leadingWhitespace
(str string)
lexer/blockstring.go:50
↓ 3 callers
Function
mustReadFile
(name string)
formatter/formatter_test.go:253
↓ 3 callers
Method
parseImplementsInterfaces
()
parser/schema.go:209
↓ 3 callers
Function
unexpectedTypeMessageOnly
(v *ast.Value)
validator/rules/values_of_correct_type.go:258
↓ 2 callers
Method
FormatArgumentDefinitionList
(lists ast.ArgumentDefinitionList)
formatter/formatter.go:424
↓ 2 callers
Method
FormatArgumentList
(lists ast.ArgumentList)
formatter/formatter.go:659
↓ 2 callers
Method
FormatDefinition
(def *ast.Definition, extend bool)
formatter/formatter.go:530
↓ 2 callers
Method
FormatDefinitionList
(lists ast.DefinitionList, extend bool)
formatter/formatter.go:520
↓ 2 callers
Method
FormatDirectiveDefinition
(def *ast.DirectiveDefinition)
formatter/formatter.go:482
↓ 2 callers
Method
FormatSchemaDefinitionList
(lists ast.SchemaDefinitionList, extension bool)
formatter/formatter.go:283
↓ 2 callers
Method
FormatVariableDefinitionList
(lists ast.VariableDefinitionList)
formatter/formatter.go:701
↓ 2 callers
Method
Get
(responseName string)
validator/rules/overlapping_fields_can_be_merged.go:176
↓ 2 callers
Method
GetImplements
GetImplements returns all the interface and union definitions that the given definition satisfies.
ast/document.go:70
↓ 2 callers
Method
GetPosition
()
ast/selection.go:7
↓ 2 callers
Method
Is
(target error)
gqlerror/error.go:93
↓ 2 callers
Method
IsLeafType
()
ast/definition.go:48
↓ 2 callers
Method
Merge
(other *SchemaDocument)
ast/document.go:20
↓ 2 callers
Function
ParseSchemas
(inputs ...*Source)
parser/schema.go:8
↓ 2 callers
Function
RemoveRule
RemoveRule removes an existing rule from the rule set if one of the same name exists. The rule set is global, so it is not safe for concurrent changes
validator/validator.go:54
↓ 2 callers
Function
ValidateSchemaDocument
(sd *SchemaDocument)
validator/schema.go:22
↓ 2 callers
Function
checkDepthField
(field *ast.Field, visitedFragments map[string]bool, depth int)
validator/rules/max_introspection_depth.go:56
↓ 2 callers
Function
checkDepthSelectionSet
( selectionSet ast.SelectionSet, visitedFragments map[string]bool, depth int, )
validator/rules/max_introspection_depth.go:31
↓ 2 callers
Function
checkUniqueArgs
(args ast.ArgumentList, addError AddErrFunc)
validator/rules/unique_argument_names.go:22
↓ 2 callers
Method
collectConflictsBetweenFragments
( conflicts *conflictMessageContainer, areMutuallyExclusive bool, fragmentSpreadA *ast.FragmentSpread, fra
validator/rules/overlapping_fields_can_be_merged.go:330
↓ 2 callers
Method
consumeCommentGroup
()
parser/parser.go:47
↓ 2 callers
Method
findConflict
( parentFieldsAreMutuallyExclusive bool, fieldA *ast.Field, fieldB *ast.Field, )
validator/rules/overlapping_fields_can_be_merged.go:476
↓ 2 callers
Function
funcWithPath
(path)
validator/imported/export.js:69
↓ 2 callers
Function
mustReadFile
(name string)
validator/vars_test.go:1210
↓ 2 callers
Function
newDummyRule
newDummyRule returns a dummy Rule for testing purposes. The RuleFunc is a no-op; only the name is relevant for these tests.
validator/rules/rules_test.go:15
↓ 2 callers
Method
nl
()
ast/dumper.go:76
↓ 2 callers
Method
parseArgumentDefs
()
parser/schema.go:253
↓ 2 callers
Method
parseArguments
(isConst bool)
parser/query.go:175
↓ 2 callers
Method
parseDirectiveLocation
()
parser/schema.go:587
↓ 2 callers
Method
parseEnumValuesDefinition
()
parser/schema.go:369
↓ 2 callers
Method
parseFragmentName
()
parser/query.go:238
↓ 2 callers
Method
parseInputFieldsDefinition
()
parser/schema.go:409
↓ 2 callers
Method
parseOperationDefinition
()
parser/query.go:51
↓ 2 callers
Method
parseOperationType
()
parser/query.go:77
↓ 2 callers
Method
parseOperationTypeDefinition
()
parser/schema.go:169
↓ 2 callers
Method
parseQueryDocument
()
parser/query.go:24
↓ 2 callers
Method
parseSchemaDocument
()
parser/schema.go:72
↓ 2 callers
Method
parseSelection
()
parser/query.go:147
↓ 2 callers
Method
parseUnionMemberTypes
parseUnionMemberTypes parses a union's member type list. It returns the member type names alongside their source positions; the two slices have equal
parser/schema.go:339
↓ 2 callers
Method
parseVariable
()
parser/query.go:119
↓ 2 callers
Method
parseVariableDefinitions
()
parser/query.go:91
↓ 2 callers
Method
peek
take one rune from input and advance end.
lexer/lexer.go:37
↓ 2 callers
Function
resultProxy
(start, base = {})
validator/imported/export.js:68
↓ 2 callers
Function
ruleFuncFieldsOnCorrectType
(observers *Events, addError AddErrFunc, disableSuggestion bool)
validator/rules/fields_on_correct_type.go:12
↓ 2 callers
Function
ruleFuncKnownArgumentNames
(observers *Events, addError AddErrFunc, disableSuggestion bool)
validator/rules/known_argument_names.go:9
↓ 2 callers
Function
ruleFuncKnownTypeNames
(observers *Events, addError AddErrFunc, disableSuggestion bool)
validator/rules/known_type_names.go:9
↓ 2 callers
Function
ruleFuncScalarLeafs
(observers *Events, addError AddErrFunc, disableSuggestion bool)
validator/rules/scalar_leafs.go:9
↓ 2 callers
Function
ruleFuncValuesOfCorrectType
(observers *Events, addError AddErrFunc, disableSuggestion bool)
validator/rules/values_of_correct_type.go:13
↓ 2 callers
Function
sameArguments
(args1, args2 []*ast.Argument)
validator/rules/overlapping_fields_can_be_merged.go:554
↓ 2 callers
Function
validateArgs
( schema *Schema, args ArgumentDefinitionList, currentDirective *DirectiveDefinition, )
validator/schema.go:468
↓ 2 callers
Function
validateTypeRef
(schema *Schema, typ *Type)
validator/schema.go:461
↓ 2 callers
Method
walkArgument
(argDef *ast.ArgumentDefinition, arg *ast.Argument)
validator/core/walk.go:214
↓ 2 callers
Method
walkValue
(value *ast.Value)
validator/core/walk.go:175
↓ 2 callers
Method
writeIndent
()
formatter/formatter.go:97
↓ 1 callers
Method
Add
( a *ast.FragmentSpread, b *ast.FragmentSpread, areMutuallyExclusive bool, )
validator/rules/overlapping_fields_can_be_merged.go:115
↓ 1 callers
Function
AddRule
AddRule adds a rule to the rule set. ruleFunc is called once each time `Validate` is executed.
validator/validator.go:47
↓ 1 callers
Method
Dump
()
ast/dumper.go:27
↓ 1 callers
Method
FormatArgument
(arg *ast.Argument)
formatter/formatter.go:674
↓ 1 callers
Method
FormatArgumentDefinition
(def *ast.ArgumentDefinition)
formatter/formatter.go:442
↓ 1 callers
Method
FormatComment
(comment *ast.Comment)
formatter/formatter.go:829
↓ 1 callers
Method
FormatDirective
(dir *ast.Directive)
formatter/formatter.go:654
↓ 1 callers
Method
FormatDirectiveDefinitionList
(lists ast.DirectiveDefinitionList)
formatter/formatter.go:472
↓ 1 callers
Method
FormatDirectiveLocation
(location ast.DirectiveLocation)
formatter/formatter.go:468
↓ 1 callers
Method
FormatEnumValueDefinition
(def *ast.EnumValueDefinition)
formatter/formatter.go:606
↓ 1 callers
Method
FormatEnumValueList
( lists ast.EnumValueList, endOfDefComment *ast.CommentGroup, )
formatter/formatter.go:585
↓ 1 callers
Method
FormatField
(field *ast.Field)
formatter/formatter.go:766
↓ 1 callers
Method
FormatFieldDefinition
(field *ast.FieldDefinition)
formatter/formatter.go:394
↓ 1 callers
Method
FormatFieldList
(fieldList ast.FieldList, endOfDefComment *ast.CommentGroup)
formatter/formatter.go:376
↓ 1 callers
Method
FormatFragmentDefinition
(def *ast.FragmentDefinition)
formatter/formatter.go:687
↓ 1 callers
Method
FormatFragmentDefinitionList
(lists ast.FragmentDefinitionList)
formatter/formatter.go:681
↓ 1 callers
Method
FormatFragmentSpread
(spread *ast.FragmentSpread)
formatter/formatter.go:785
↓ 1 callers
Method
FormatInlineFragment
(inline *ast.InlineFragment)
formatter/formatter.go:797
↓ 1 callers
Method
FormatOperationDefinition
(def *ast.OperationDefinition)
formatter/formatter.go:625
↓ 1 callers
Method
FormatOperationList
(lists ast.OperationList)
formatter/formatter.go:619
↓ 1 callers
Method
FormatOperationTypeDefinition
(def *ast.OperationTypeDefinition)
formatter/formatter.go:369
↓ 1 callers
Method
FormatOperationTypeDefinitionList
(lists ast.OperationTypeDefinitionList)
formatter/formatter.go:363
↓ 1 callers
Method
FormatQueryDocument
(doc *ast.QueryDocument)
formatter/formatter.go:15
↓ 1 callers
Method
FormatSchema
(schema *ast.Schema)
formatter/formatter.go:13
↓ 1 callers
Method
FormatSchemaDefinition
(def *ast.SchemaDefinition)
formatter/formatter.go:359
↓ 1 callers
Method
FormatSchemaDocument
(doc *ast.SchemaDocument)
formatter/formatter.go:14
↓ 1 callers
Method
FormatSelection
(selection ast.Selection)
formatter/formatter.go:748
← previous
next →
101–200 of 429, ranked by callers