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
↓ 114 callers
Method
ForName
(name string)
ast/collections.go:5
↓ 71 callers
Function
VariableValues
VariableValues coerces and validates variable values.
validator/vars.go:19
↓ 70 callers
Method
WriteString
(s string)
formatter/formatter.go:128
↓ 62 callers
Method
WriteWord
(word string)
formatter/formatter.go:115
↓ 60 callers
Function
Message
(msg string, args ...any)
validator/core/helpers.go:16
↓ 56 callers
Function
At
(position *ast.Position)
validator/core/helpers.go:22
↓ 52 callers
Method
peek
()
parser/parser.go:78
↓ 44 callers
Method
String
(buf *bytes.Buffer)
validator/rules/overlapping_fields_can_be_merged.go:214
↓ 38 callers
Method
peekPos
()
parser/parser.go:69
↓ 37 callers
Function
ErrorPosf
(pos *ast.Position, message string, args ...any)
gqlerror/error.go:167
↓ 32 callers
Method
parseName
()
parser/query.go:368
↓ 30 callers
Function
NamedType
(named string, pos *Position)
ast/type.go:7
↓ 29 callers
Method
Name
()
ast/type.go:26
↓ 27 callers
Method
FormatCommentGroup
(group *ast.CommentGroup)
formatter/formatter.go:820
↓ 25 callers
Method
WriteNewline
()
formatter/formatter.go:107
↓ 24 callers
Method
parseDirectives
(isConst bool)
parser/query.go:328
↓ 23 callers
Method
String
()
ast/path.go:22
↓ 22 callers
Method
next
()
parser/parser.go:101
↓ 21 callers
Method
expectKeyword
(value string)
parser/parser.go:124
↓ 20 callers
Method
Len
()
validator/core/core.go:20
↓ 20 callers
Method
NoPadding
()
formatter/formatter.go:166
↓ 19 callers
Function
ParseQuery
(source *Source)
parser/query.go:8
↓ 18 callers
Function
ListType
(elem *Type, pos *Position)
ast/type.go:15
↓ 18 callers
Method
unexpectedError
()
parser/parser.go:160
↓ 17 callers
Method
IsCompatible
(other *Type)
ast/type.go:46
↓ 17 callers
Method
skip
(kind lexer.Type)
parser/parser.go:146
↓ 16 callers
Method
expect
(kind lexer.Type)
parser/parser.go:135
↓ 16 callers
Method
makeValueToken
(kind Type, value string)
lexer/lexer.go:45
↓ 15 callers
Function
ErrorPathf
(path ast.Path, message string, args ...any)
gqlerror/error.go:160
↓ 15 callers
Method
makeError
(format string, args ...any)
lexer/lexer.go:59
↓ 14 callers
Method
Error
()
gqlerror/error.go:84
↓ 14 callers
Function
LoadSchema
(inputs ...*Source)
validator/schema.go:14
↓ 14 callers
Method
NeedPadding
()
formatter/formatter.go:172
↓ 14 callers
Method
some
(start, end lexer.Type, cb func())
parser/parser.go:180
↓ 13 callers
Function
newParser
(input string)
parser/parser_test.go:173
↓ 12 callers
Method
FormatDirectiveList
(lists ast.DirectiveList)
formatter/formatter.go:644
↓ 12 callers
Function
ParseSchema
(source *Source)
parser/schema.go:20
↓ 11 callers
Method
GetInner
GetInner returns the internal rule map. If the map is not initialized, it returns an empty map. This returns a copy of the rules map, not the original
validator/rules/rules.go:81
↓ 10 callers
Method
Error
()
gqlerror/error_test.go:16
↓ 9 callers
Method
As
(target any)
gqlerror/error.go:102
↓ 9 callers
Method
OnField
(f func(walker *Walker, field *ast.Field))
validator/core/walk.go:26
↓ 9 callers
Method
error
(tok lexer.Token, format string, args ...any)
parser/parser.go:94
↓ 8 callers
Method
OnOperation
(f func(walker *Walker, operation *ast.OperationDefinition))
validator/core/walk.go:22
↓ 8 callers
Function
OrList
Given [ A, B, C ] return 'A, B, or C'.
validator/core/helpers.go:71
↓ 8 callers
Function
QuotedOrList
Given [ A, B, C ] return '"A", "B", or "C"'.
validator/core/helpers.go:62
↓ 8 callers
Function
arg2map
( defs ArgumentDefinitionList, args ArgumentList, vars map[string]any, )
ast/argmap.go:3
↓ 7 callers
Method
DecrementIndent
()
formatter/formatter.go:162
↓ 7 callers
Function
ErrorLocf
(file string, line, col int, message string, args ...any)
gqlerror/error.go:186
↓ 7 callers
Method
IncrementIndent
()
formatter/formatter.go:158
↓ 7 callers
Method
String
()
parser/testrunner/runner.go:35
↓ 7 callers
Function
ValidateWithRules
( schema *Schema, doc *QueryDocument, rules *validatorrules.Rules, )
validator/validator.go:121
↓ 7 callers
Method
walkDirectives
( parentDef *ast.Definition, directives []*ast.Directive, location ast.DirectiveLocation, )
validator/core/walk.go:145
↓ 6 callers
Function
New
(src *ast.Source)
lexer/lexer.go:29
↓ 6 callers
Function
NonNullNamedType
(named string, pos *Position)
ast/type.go:3
↓ 6 callers
Method
OnFragment
(f func(walker *Walker, fragment *ast.FragmentDefinition))
validator/core/walk.go:30
↓ 6 callers
Function
SuggestListQuoted
(prefix, typed string, suggestions []string)
validator/core/helpers.go:37
↓ 6 callers
Function
Validate
Deprecated: use ValidateWithRules instead.
validator/validator.go:88
↓ 6 callers
Method
WriteDescription
(s string)
formatter/formatter.go:141
↓ 6 callers
Method
dump
(v reflect.Value)
ast/dumper.go:30
↓ 6 callers
Function
getFieldsAndFragmentNames
( selectionSet ast.SelectionSet, )
validator/rules/overlapping_fields_can_be_merged.go:610
↓ 6 callers
Method
makeToken
(kind Type)
lexer/lexer.go:41
↓ 6 callers
Method
parseValueLiteral
(isConst bool)
parser/query.go:247
↓ 6 callers
Function
unexpectedTypeMessage
(addError AddErrFunc, v *ast.Value)
validator/rules/values_of_correct_type.go:251
↓ 6 callers
Function
validateDirectives
( schema *Schema, dirs DirectiveList, location DirectiveLocation, currentDirective *DirectiveDefinition,
validator/schema.go:504
↓ 6 callers
Method
writeString
(s string)
formatter/formatter.go:93
↓ 5 callers
Method
AddRule
AddRule adds a rule with the specified name and rule function to the rule set. If a rule with the same name already exists, it will not be added.
validator/rules/rules.go:67
↓ 5 callers
Function
Dump
Dump turns ast into a stable string format for assertions in tests.
ast/dumper.go:12
↓ 5 callers
Function
Errorf
(message string, args ...any)
gqlerror/error.go:154
↓ 5 callers
Method
GetPossibleTypes
GetPossibleTypes will enumerate all the definitions for a given interface or union.
ast/document.go:60
↓ 5 callers
Method
OnValue
(f func(walker *Walker, value *ast.Value))
validator/core/walk.go:50
↓ 5 callers
Method
OneOf
(types ...string)
ast/definition.go:64
↓ 5 callers
Method
Value
(vars map[string]any)
ast/value.go:45
↓ 5 callers
Method
acceptByte
acceptByte if it matches any of given bytes, returning true if it found anything.
lexer/lexer.go:315
↓ 5 callers
Function
blockStringValue
blockStringValue produces the value of a block string from its parsed raw value, similar to Coffeescript's block string, Python's docstring trim or Ru
lexer/blockstring.go:12
↓ 5 callers
Method
many
(start, end lexer.Type, cb func())
parser/parser.go:168
↓ 5 callers
Method
parseDescription
()
parser/schema.go:114
↓ 5 callers
Method
unexpectedToken
(tok lexer.Token)
parser/parser.go:164
↓ 5 callers
Function
validateName
(pos *Position, name string)
validator/schema.go:711
↓ 5 callers
Method
walkSelectionSet
(parentDef *ast.Definition, it ast.SelectionSet)
validator/core/walk.go:225
↓ 4 callers
Method
AddPossibleType
(name string, def *Definition)
ast/document.go:55
↓ 4 callers
Method
FormatSelectionSet
(sets ast.SelectionSet)
formatter/formatter.go:732
↓ 4 callers
Function
NewRules
NewRules creates a Rules instance with the specified rules.
validator/rules/rules.go:16
↓ 4 callers
Function
NonNullListType
(elem *Type, pos *Position)
ast/type.go:11
↓ 4 callers
Method
OnDirective
(f func(walker *Walker, directive *ast.Directive))
validator/core/walk.go:42
↓ 4 callers
Method
OnInlineFragment
(f func(walker *Walker, inlineFragment *ast.InlineFragment))
validator/core/walk.go:34
↓ 4 callers
Method
String
()
lexer/token.go:84
↓ 4 callers
Function
Test
(t *testing.T, filename string, f func(t *testing.T, input string) Spec)
parser/testrunner/runner.go:39
↓ 4 callers
Function
UnmarshalSelectionSet
(b []byte)
ast/decode.go:7
↓ 4 callers
Function
Walk
Walk is an alias for core.Walk.
validator/validator.go:29
↓ 4 callers
Method
acceptDigits
acceptDigits from the input, returning the number of digits it found.
lexer/lexer.go:329
↓ 4 callers
Method
addFieldsConflictMessage
(addError AddErrFunc)
validator/rules/overlapping_fields_can_be_merged.go:231
↓ 4 callers
Function
compareErrors
(errors gqlerror.List)
validator/imported_test.go:300
↓ 4 callers
Method
describeNext
describeNext peeks at the input and returns a human readable string. This should will alloc and should only be used in errors.
lexer/lexer.go:342
↓ 4 callers
Method
findConflictsWithinSelectionSet
( selectionSet ast.SelectionSet, )
validator/rules/overlapping_fields_can_be_merged.go:255
↓ 4 callers
Method
parseFieldsDefinition
()
parser/schema.go:224
↓ 4 callers
Method
parseRequiredSelectionSet
()
parser/query.go:133
↓ 4 callers
Method
parseTypeReference
()
parser/query.go:350
↓ 4 callers
Function
readYaml
(filename string, result any)
validator/imported_test.go:310
↓ 3 callers
Method
AddImplements
(name string, iface *Definition)
ast/document.go:64
↓ 3 callers
Method
FormatType
(t *ast.Type)
formatter/formatter.go:810
next →
1–100 of 429, ranked by callers