MCPcopy Create free account

hub / github.com/vektah/gqlparser / functions

Functions429 in github.com/vektah/gqlparser

↓ 1 callersFunctionvalidateDirective
(schema *Schema, def *DirectiveDefinition)
validator/schema.go:263
↓ 1 callersFunctionvalidateDirectiveDefinitions
(schema *Schema)
validator/schema.go:248
↓ 1 callersFunctionvalidateImplements
(schema *Schema, def *Definition, intfName string)
validator/schema.go:583
↓ 1 callersFunctionvalidateTypeDefinitions
(schema *Schema)
validator/schema.go:233
↓ 1 callersFunctionvalidateTypeImplementsAncestors
validateTypeImplementsAncestors https://github.com/graphql/graphql-js/blob/47bd8c8897c72d3efc17ecb1599a95cee6bac5e8/src/type/validate.ts#L428
validator/schema.go:657
↓ 1 callersMethodvalidateVarType
( typ *ast.Type, val reflect.Value, )
validator/vars.go:111
↓ 1 callersMethodwalk
()
validator/core/walk.go:78
↓ 1 callersMethodwalkFragment
(it *ast.FragmentDefinition)
validator/core/walk.go:132
↓ 1 callersMethodwalkOperation
(operation *ast.OperationDefinition)
validator/core/walk.go:89
↓ 1 callersMethodwalkSelection
(parentDef *ast.Definition, it ast.Selection)
validator/core/walk.go:231
↓ 1 callersMethodwriteIndent
()
ast/dumper.go:72
↓ 1 callersMethodws
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
MethodAddTypes
AddTypes is the helper to add types definition to the schema.
ast/document.go:46
MethodArgumentMap
(vars map[string]any)
ast/selection.go:39
MethodArgumentMap
(vars map[string]any)
ast/directive.go:41
MethodAsError
()
gqlerror/error.go:77
FunctionBenchmarkError
(b *testing.B)
gqlerror/error_test.go:183
MethodDump
()
ast/value.go:121
MethodDump
()
ast/comment.go:21
MethodDump
()
ast/type.go:66
MethodError
()
gqlerror/error.go:40
MethodForName
(name string)
ast/collections.go:16
MethodForName
(name string)
ast/collections.go:27
MethodForName
(name string)
ast/collections.go:48
MethodForName
(name string)
ast/collections.go:62
MethodForName
(name string)
ast/collections.go:73
MethodForName
(name string)
ast/collections.go:84
MethodForName
(name string)
ast/collections.go:95
MethodForName
(name string)
ast/collections.go:108
MethodForName
(name string)
ast/collections.go:119
MethodForName
(name string)
ast/collections.go:141
MethodForNames
(name string)
ast/collections.go:36
MethodForType
(name string)
ast/collections.go:130
MethodFormatQueryDocument
(doc *ast.QueryDocument)
formatter/formatter.go:270
MethodFormatSchema
(schema *ast.Schema)
formatter/formatter.go:178
MethodFormatSchemaDocument
(doc *ast.SchemaDocument)
formatter/formatter.go:251
MethodGetPosition
()
ast/selection.go:14
MethodGetPosition
()
ast/selection.go:15
MethodGetPosition
()
ast/selection.go:16
MethodLess
(i, j int)
validator/core/core.go:22
FunctionLoadSchema
(str ...*ast.Source)
gqlparser.go:13
FunctionMustLoadQuery
Deprecated: use MustLoadQueryWithRules instead.
gqlparser.go:76
FunctionMustLoadQueryWithRules
(schema *ast.Schema, str string, rules *rules.Rules)
gqlparser.go:84
FunctionMustLoadSchema
(str ...*ast.Source)
gqlparser.go:26
FunctionParseQueryWithTokenLimit
(source *Source, maxTokenLimit int)
parser/query.go:16
FunctionParseSchemasWithLimit
(maxTokenLimit int, inputs ...*Source)
parser/schema.go:40
FunctionReplaceRule
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
MethodSetMaxTokenLimit
(maxToken int)
parser/parser.go:28
MethodString
()
lexer/token.go:143
MethodSwap
(i, j int)
validator/core/core.go:21
FunctionTestAddRuleDuplicate
TestAddRuleDuplicate confirms that calling AddRule twice with the same name does not create duplicate entries.
validator/rules/rules_test.go:39
FunctionTestArg2Map
(t *testing.T)
ast/argmap_test.go:9
FunctionTestArgumentPositionWithBlockStringDescription
(t *testing.T)
parser/schema_test.go:49
FunctionTestBlockStringValue
(t *testing.T)
lexer/blockstring_test.go:9
FunctionTestCustomRuleSet
(t *testing.T)
validator/validator_test.go:253
FunctionTestCustomRuleSetWithRules
(t *testing.T)
validator/validator_test.go:295
FunctionTestDeprecatingTypes
(t *testing.T)
validator/validator_test.go:159
FunctionTestDump
(t *testing.T)
ast/dumper_test.go:9
FunctionTestEnumValuePositionWithBlockStringDescription
(t *testing.T)
parser/schema_test.go:83
FunctionTestErrorFormatting
(t *testing.T)
gqlerror/error_test.go:34
FunctionTestErrorPosition
(t *testing.T)
gqlerror/error_test.go:59
FunctionTestExtendingNonExistantTypes
(t *testing.T)
validator/validator_test.go:15
FunctionTestFieldPositionWithBlockStringDescription
(t *testing.T)
parser/schema_test.go:33
FunctionTestFormatter_FormatQueryDocument
(t *testing.T)
formatter/formatter_test.go:134
FunctionTestFormatter_FormatSchema
(t *testing.T)
formatter/formatter_test.go:38
FunctionTestFormatter_FormatSchemaDocument
(t *testing.T)
formatter/formatter_test.go:90
FunctionTestGetInnerNilSafety
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
FunctionTestGetInnerReturnsCopy
TestGetInnerReturnsCopy confirms that GetInner returns a copy of the internal map.
validator/rules/rules_test.go:104
FunctionTestInputValuePositionWithBlockStringDescription
(t *testing.T)
parser/schema_test.go:67
FunctionTestLexer
(t *testing.T)
lexer/lexer_test.go:12
FunctionTestList_As
(t *testing.T)
gqlerror/error_test.go:71
FunctionTestList_Is
(t *testing.T)
gqlerror/error_test.go:125
FunctionTestLoadSchema
(t *testing.T)
validator/schema_test.go:16
FunctionTestMessaging
(t *testing.T)
validator/messaging_test.go:9
FunctionTestNamedTypeCompatability
(t *testing.T)
ast/document_test.go:33
FunctionTestNewDefaultRules
TestNewDefaultRules asserts that NewDefaultRules returns a non-empty rule set.
validator/rules/rules_test.go:96
FunctionTestNewRules
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
FunctionTestNoUnusedVariables
(t *testing.T)
validator/validator_test.go:179
FunctionTestNoUnusedVariablesWithRules
(t *testing.T)
validator/validator_test.go:204
FunctionTestParserUtils
(t *testing.T)
parser/parser_test.go:12
FunctionTestPath_MarshalJSON
(t *testing.T)
ast/path_test.go:37
FunctionTestPath_String
(t *testing.T)
ast/path_test.go:10
FunctionTestPath_UnmarshalJSON
(t *testing.T)
ast/path_test.go:67
FunctionTestQueryDocMethods
(t *testing.T)
ast/document_test.go:13
FunctionTestQueryDocument
(t *testing.T)
parser/query_test.go:14
FunctionTestQueryPosition
(t *testing.T)
parser/query_test.go:34
FunctionTestRemoveRule
(t *testing.T)
validator/validator_test.go:341
FunctionTestRemoveRule
TestRemoveRule verifies that RemoveRule deletes the entry from both the internal map and ruleNameKeys slice.
validator/rules/rules_test.go:53
FunctionTestReplaceRule
TestReplaceRule checks that ReplaceRule actually swaps out the RuleFunc for an existing rule.
validator/rules/rules_test.go:67
FunctionTestSchemaDescription
(t *testing.T)
validator/schema_test.go:132
FunctionTestSchemaDescriptionWithQuotesAtEnd
(t *testing.T)
validator/schema_test.go:150
FunctionTestSchemaDocument
(t *testing.T)
parser/schema_test.go:14
FunctionTestTypePosition
(t *testing.T)
parser/schema_test.go:99
FunctionTestUnionDuplicateMemberFallbackPosition
(t *testing.T)
validator/schema_test.go:185
FunctionTestValidateVars
(t *testing.T)
validator/vars_test.go:14
FunctionTestValidateVarsWithRules
(t *testing.T)
validator/vars_test.go:605
FunctionTestValidation
(t *testing.T)
validator/imported_test.go:37
FunctionTestValidationRulesAreIndependent
(t *testing.T)
validator/validator_test.go:47
FunctionTestValidationRulesAreIndependentWithRules
(t *testing.T)
validator/validator_test.go:104
FunctionTestWalkInlineFragment
(t *testing.T)
validator/walk_test.go:37
← previousnext →301–400 of 429, ranked by callers