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
↓ 1 callers
Function
validateDirective
(schema *Schema, def *DirectiveDefinition)
validator/schema.go:263
↓ 1 callers
Function
validateDirectiveDefinitions
(schema *Schema)
validator/schema.go:248
↓ 1 callers
Function
validateImplements
(schema *Schema, def *Definition, intfName string)
validator/schema.go:583
↓ 1 callers
Function
validateTypeDefinitions
(schema *Schema)
validator/schema.go:233
↓ 1 callers
Function
validateTypeImplementsAncestors
validateTypeImplementsAncestors https://github.com/graphql/graphql-js/blob/47bd8c8897c72d3efc17ecb1599a95cee6bac5e8/src/type/validate.ts#L428
validator/schema.go:657
↓ 1 callers
Method
validateVarType
( typ *ast.Type, val reflect.Value, )
validator/vars.go:111
↓ 1 callers
Method
walk
()
validator/core/walk.go:78
↓ 1 callers
Method
walkFragment
(it *ast.FragmentDefinition)
validator/core/walk.go:132
↓ 1 callers
Method
walkOperation
(operation *ast.OperationDefinition)
validator/core/walk.go:89
↓ 1 callers
Method
walkSelection
(parentDef *ast.Definition, it ast.Selection)
validator/core/walk.go:231
↓ 1 callers
Method
writeIndent
()
ast/dumper.go:72
↓ 1 callers
Method
ws
ws reads from body starting at startPosition until it finds a non-whitespace or commented character, and updates the token end to include all whitespa
lexer/lexer.go:210
Method
AddTypes
AddTypes is the helper to add types definition to the schema.
ast/document.go:46
Method
ArgumentMap
(vars map[string]any)
ast/selection.go:39
Method
ArgumentMap
(vars map[string]any)
ast/directive.go:41
Method
AsError
()
gqlerror/error.go:77
Function
BenchmarkError
(b *testing.B)
gqlerror/error_test.go:183
Method
Dump
()
ast/value.go:121
Method
Dump
()
ast/comment.go:21
Method
Dump
()
ast/type.go:66
Method
Error
()
gqlerror/error.go:40
Method
ForName
(name string)
ast/collections.go:16
Method
ForName
(name string)
ast/collections.go:27
Method
ForName
(name string)
ast/collections.go:48
Method
ForName
(name string)
ast/collections.go:62
Method
ForName
(name string)
ast/collections.go:73
Method
ForName
(name string)
ast/collections.go:84
Method
ForName
(name string)
ast/collections.go:95
Method
ForName
(name string)
ast/collections.go:108
Method
ForName
(name string)
ast/collections.go:119
Method
ForName
(name string)
ast/collections.go:141
Method
ForNames
(name string)
ast/collections.go:36
Method
ForType
(name string)
ast/collections.go:130
Method
FormatQueryDocument
(doc *ast.QueryDocument)
formatter/formatter.go:270
Method
FormatSchema
(schema *ast.Schema)
formatter/formatter.go:178
Method
FormatSchemaDocument
(doc *ast.SchemaDocument)
formatter/formatter.go:251
Method
GetPosition
()
ast/selection.go:14
Method
GetPosition
()
ast/selection.go:15
Method
GetPosition
()
ast/selection.go:16
Method
Less
(i, j int)
validator/core/core.go:22
Function
LoadSchema
(str ...*ast.Source)
gqlparser.go:13
Function
MustLoadQuery
Deprecated: use MustLoadQueryWithRules instead.
gqlparser.go:76
Function
MustLoadQueryWithRules
(schema *ast.Schema, str string, rules *rules.Rules)
gqlparser.go:84
Function
MustLoadSchema
(str ...*ast.Source)
gqlparser.go:26
Function
ParseQueryWithTokenLimit
(source *Source, maxTokenLimit int)
parser/query.go:16
Function
ParseSchemasWithLimit
(maxTokenLimit int, inputs ...*Source)
parser/schema.go:40
Function
ReplaceRule
ReplaceRule replaces an existing rule from the rule set if one of the same name exists. If no match is found, it will add a new rule to the rule set.
validator/validator.go:69
Method
SetMaxTokenLimit
(maxToken int)
parser/parser.go:28
Method
String
()
lexer/token.go:143
Method
Swap
(i, j int)
validator/core/core.go:21
Function
TestAddRuleDuplicate
TestAddRuleDuplicate confirms that calling AddRule twice with the same name does not create duplicate entries.
validator/rules/rules_test.go:39
Function
TestArg2Map
(t *testing.T)
ast/argmap_test.go:9
Function
TestArgumentPositionWithBlockStringDescription
(t *testing.T)
parser/schema_test.go:49
Function
TestBlockStringValue
(t *testing.T)
lexer/blockstring_test.go:9
Function
TestCustomRuleSet
(t *testing.T)
validator/validator_test.go:253
Function
TestCustomRuleSetWithRules
(t *testing.T)
validator/validator_test.go:295
Function
TestDeprecatingTypes
(t *testing.T)
validator/validator_test.go:159
Function
TestDump
(t *testing.T)
ast/dumper_test.go:9
Function
TestEnumValuePositionWithBlockStringDescription
(t *testing.T)
parser/schema_test.go:83
Function
TestErrorFormatting
(t *testing.T)
gqlerror/error_test.go:34
Function
TestErrorPosition
(t *testing.T)
gqlerror/error_test.go:59
Function
TestExtendingNonExistantTypes
(t *testing.T)
validator/validator_test.go:15
Function
TestFieldPositionWithBlockStringDescription
(t *testing.T)
parser/schema_test.go:33
Function
TestFormatter_FormatQueryDocument
(t *testing.T)
formatter/formatter_test.go:134
Function
TestFormatter_FormatSchema
(t *testing.T)
formatter/formatter_test.go:38
Function
TestFormatter_FormatSchemaDocument
(t *testing.T)
formatter/formatter_test.go:90
Function
TestGetInnerNilSafety
TestGetInnerNilSafety guarantees that GetInner is safe on a nil receiver and on an empty Rules struct, returning sensible defaults without panicking.
validator/rules/rules_test.go:84
Function
TestGetInnerReturnsCopy
TestGetInnerReturnsCopy confirms that GetInner returns a copy of the internal map.
validator/rules/rules_test.go:104
Function
TestInputValuePositionWithBlockStringDescription
(t *testing.T)
parser/schema_test.go:67
Function
TestLexer
(t *testing.T)
lexer/lexer_test.go:12
Function
TestList_As
(t *testing.T)
gqlerror/error_test.go:71
Function
TestList_Is
(t *testing.T)
gqlerror/error_test.go:125
Function
TestLoadSchema
(t *testing.T)
validator/schema_test.go:16
Function
TestMessaging
(t *testing.T)
validator/messaging_test.go:9
Function
TestNamedTypeCompatability
(t *testing.T)
ast/document_test.go:33
Function
TestNewDefaultRules
TestNewDefaultRules asserts that NewDefaultRules returns a non-empty rule set.
validator/rules/rules_test.go:96
Function
TestNewRules
TestNewRules ensures that NewRules registers the provided Rules in the internal map and keeps ruleNameKeys in the expected order.
validator/rules/rules_test.go:24
Function
TestNoUnusedVariables
(t *testing.T)
validator/validator_test.go:179
Function
TestNoUnusedVariablesWithRules
(t *testing.T)
validator/validator_test.go:204
Function
TestParserUtils
(t *testing.T)
parser/parser_test.go:12
Function
TestPath_MarshalJSON
(t *testing.T)
ast/path_test.go:37
Function
TestPath_String
(t *testing.T)
ast/path_test.go:10
Function
TestPath_UnmarshalJSON
(t *testing.T)
ast/path_test.go:67
Function
TestQueryDocMethods
(t *testing.T)
ast/document_test.go:13
Function
TestQueryDocument
(t *testing.T)
parser/query_test.go:14
Function
TestQueryPosition
(t *testing.T)
parser/query_test.go:34
Function
TestRemoveRule
(t *testing.T)
validator/validator_test.go:341
Function
TestRemoveRule
TestRemoveRule verifies that RemoveRule deletes the entry from both the internal map and ruleNameKeys slice.
validator/rules/rules_test.go:53
Function
TestReplaceRule
TestReplaceRule checks that ReplaceRule actually swaps out the RuleFunc for an existing rule.
validator/rules/rules_test.go:67
Function
TestSchemaDescription
(t *testing.T)
validator/schema_test.go:132
Function
TestSchemaDescriptionWithQuotesAtEnd
(t *testing.T)
validator/schema_test.go:150
Function
TestSchemaDocument
(t *testing.T)
parser/schema_test.go:14
Function
TestTypePosition
(t *testing.T)
parser/schema_test.go:99
Function
TestUnionDuplicateMemberFallbackPosition
(t *testing.T)
validator/schema_test.go:185
Function
TestValidateVars
(t *testing.T)
validator/vars_test.go:14
Function
TestValidateVarsWithRules
(t *testing.T)
validator/vars_test.go:605
Function
TestValidation
(t *testing.T)
validator/imported_test.go:37
Function
TestValidationRulesAreIndependent
(t *testing.T)
validator/validator_test.go:47
Function
TestValidationRulesAreIndependentWithRules
(t *testing.T)
validator/validator_test.go:104
Function
TestWalkInlineFragment
(t *testing.T)
validator/walk_test.go:37
← previous
next →
301–400 of 429, ranked by callers