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
Method
FormatVariableDefinition
(def *ast.VariableDefinition)
formatter/formatter.go:717
↓ 1 callers
Method
Has
( a *ast.FragmentSpread, b *ast.FragmentSpread, areMutuallyExclusive bool, )
validator/rules/overlapping_fields_can_be_merged.go:132
↓ 1 callers
Method
IsAbstractType
()
ast/definition.go:52
↓ 1 callers
Method
IsSchemaDefinitionsEmpty
Return true if schema definitions is empty (besides directives), false otherwise
formatter/formatter.go:350
↓ 1 callers
Function
IsValidFloatString
(val reflect.Value, kind reflect.Kind)
validator/vars.go:282
↓ 1 callers
Function
IsValidIntString
(val reflect.Value, kind reflect.Kind)
validator/vars.go:273
↓ 1 callers
Method
Iterator
()
validator/rules/overlapping_fields_can_be_merged.go:181
↓ 1 callers
Method
KeyValueIterator
()
validator/rules/overlapping_fields_can_be_merged.go:190
↓ 1 callers
Function
LoadQuery
Deprecated: use LoadQueryWithRules instead.
gqlparser.go:35
↓ 1 callers
Function
LoadQueryWithRules
( schema *ast.Schema, str string, rules *rules.Rules, )
gqlparser.go:53
↓ 1 callers
Method
Name
()
lexer/token.go:34
↓ 1 callers
Function
NewDefaultRules
NewDefaultRules creates a Rules instance containing the default GraphQL validation rule set.
validator/rules/rules.go:29
↓ 1 callers
Method
OnDirectiveList
(f func(walker *Walker, directives []*ast.Directive))
validator/core/walk.go:46
↓ 1 callers
Method
OnVariable
(f func(walker *Walker, variable *ast.VariableDefinition))
validator/core/walk.go:54
↓ 1 callers
Function
ParseSchemaWithLimit
(source *Source, maxTokenLimit int)
parser/schema.go:52
↓ 1 callers
Method
Push
(responseName string, field *ast.Field)
validator/rules/overlapping_fields_can_be_merged.go:167
↓ 1 callers
Method
RemoveRule
RemoveRule removes a rule with the specified name from the rule set. If no rule with the specified name exists, it does nothing.
validator/rules/rules.go:99
↓ 1 callers
Method
ReplaceRule
ReplaceRule replaces a rule with the specified name with a new rule function. If no rule with the specified name exists, it does nothing.
validator/rules/rules.go:116
↓ 1 callers
Method
SetFile
(file string)
gqlerror/error.go:22
↓ 1 callers
Method
String
()
ast/value.go:93
↓ 1 callers
Method
String
()
ast/type.go:34
↓ 1 callers
Function
SuggestListUnquoted
(prefix, typed string, suggestions []string)
validator/core/helpers.go:46
↓ 1 callers
Function
Suggestf
(suggestion string, args ...any)
validator/core/helpers.go:55
↓ 1 callers
Method
Text
()
ast/comment.go:13
↓ 1 callers
Function
Walk
(schema *ast.Schema, document *ast.QueryDocument, observers *Events)
validator/core/walk.go:58
↓ 1 callers
Function
WithBuiltin
WithBuiltin includes builtin fields/directives/etc from the source/AST in the formatted output.
formatter/formatter.go:37
↓ 1 callers
Function
WithComments
WithComments includes comments from the source/AST in the formatted output.
formatter/formatter.go:30
↓ 1 callers
Function
WithCompacted
WithCompacted enables compacted output, which removes all unnecessary whitespace.
formatter/formatter.go:61
↓ 1 callers
Function
WithIndent
WithIndent uses the given string for indenting block bodies in the output, instead of the default, `"\t"`.
formatter/formatter.go:23
↓ 1 callers
Function
WithNonIntrospectionBuiltin
WithNonIntrospectionBuiltin includes builtin fields/directives/etc from the source/AST in the formatted output, but excludes the introspection types a
formatter/formatter.go:47
↓ 1 callers
Function
WithoutDescription
WithoutDescription excludes GQL description from the source/AST in the formatted output.
formatter/formatter.go:54
↓ 1 callers
Function
WrapIfUnwrapped
(err error)
gqlerror/error.go:140
↓ 1 callers
Function
WrapPath
(path ast.Path, err error)
gqlerror/error.go:119
↓ 1 callers
Function
calcThreshold
(a string)
validator/core/helpers.go:118
↓ 1 callers
Function
checkDepthFragmentSpread
( fragmentSpread *ast.FragmentSpread, visitedFragments map[string]bool, depth int, )
validator/rules/max_introspection_depth.go:69
↓ 1 callers
Method
collectConflictsWithin
( conflicts *conflictMessageContainer, fieldsMap *sequentialFieldsMap, )
validator/rules/overlapping_fields_can_be_merged.go:438
↓ 1 callers
Function
concatSlice
By employing a full slice expression (slice[low:high:max]), where max is set to the slice’s length, we ensure that appending elements results in a sli
validator/rules/fields_on_correct_type.go:113
↓ 1 callers
Method
consumeComment
()
parser/parser.go:32
↓ 1 callers
Function
containsString
(slice []string, want string)
validator/schema.go:683
↓ 1 callers
Function
doTypesConflict
(walker *Walker, type1, type2 *ast.Type)
validator/rules/overlapping_fields_can_be_merged.go:583
↓ 1 callers
Method
dumpArray
(v reflect.Value)
ast/dumper.go:88
↓ 1 callers
Method
dumpPtr
(v reflect.Value)
ast/dumper.go:155
↓ 1 callers
Method
dumpStruct
(v reflect.Value)
ast/dumper.go:100
↓ 1 callers
Function
exportPrelude
()
validator/imported/export.js:18
↓ 1 callers
Function
exportSpecDefinitions
()
validator/imported/export.js:56
↓ 1 callers
Method
findConflictsBetweenSubSelectionSets
( areMutuallyExclusive bool, selectionSetA ast.SelectionSet, selectionSetB ast.SelectionSet, )
validator/rules/overlapping_fields_can_be_merged.go:380
↓ 1 callers
Function
getFragmentSpreads
(node ast.SelectionSet)
validator/rules/no_fragment_cycles.go:77
↓ 1 callers
Function
getSuggestedFieldNames
For the field name provided, determine if there are any similar field names that may be the result of a typo.
validator/rules/fields_on_correct_type.go:120
↓ 1 callers
Function
getSuggestedTypeNames
Go through all the implementations of type, as well as the interfaces that they implement. If any of those types include the provided field, suggest t
validator/rules/fields_on_correct_type.go:65
↓ 1 callers
Function
isCovariant
(schema *Schema, required, actual *Type)
validator/schema.go:687
↓ 1 callers
Function
isZero
(v reflect.Value)
ast/dumper.go:123
↓ 1 callers
Function
lexicalDistance
Computes the lexical distance between strings A and B. The "distance" between two strings is given by counting the minimum number of edits needed to
validator/core/helpers.go:137
↓ 1 callers
Function
main
()
validator/imported/export.js:13
↓ 1 callers
Function
normalizeWs
(rawString)
validator/imported/export.js:88
↓ 1 callers
Method
parseArgument
(isConst bool)
parser/query.go:184
↓ 1 callers
Method
parseArgumentDef
()
parser/schema.go:261
↓ 1 callers
Method
parseDirective
(isConst bool)
parser/query.go:340
↓ 1 callers
Method
parseDirectiveDefinition
(description descriptionWithComment)
parser/schema.go:553
↓ 1 callers
Method
parseDirectiveLocations
()
parser/schema.go:575
↓ 1 callers
Method
parseEnumTypeDefinition
(description descriptionWithComment)
parser/schema.go:354
↓ 1 callers
Method
parseEnumTypeExtension
(comment *CommentGroup)
parser/schema.go:521
↓ 1 callers
Method
parseEnumValueDefinition
()
parser/schema.go:377
↓ 1 callers
Method
parseField
()
parser/query.go:154
↓ 1 callers
Method
parseFieldDefinition
()
parser/schema.go:232
↓ 1 callers
Method
parseFragment
()
parser/query.go:195
↓ 1 callers
Method
parseFragmentDefinition
()
parser/query.go:221
↓ 1 callers
Method
parseInputObjectTypeDefinition
(description descriptionWithComment)
parser/schema.go:394
↓ 1 callers
Method
parseInputObjectTypeExtension
(comment *CommentGroup)
parser/schema.go:537
↓ 1 callers
Method
parseInputValueDef
()
parser/schema.go:283
↓ 1 callers
Method
parseInterfaceTypeDefinition
(description descriptionWithComment)
parser/schema.go:305
↓ 1 callers
Method
parseInterfaceTypeExtension
(comment *CommentGroup)
parser/schema.go:488
↓ 1 callers
Method
parseList
(isConst bool)
parser/query.go:294
↓ 1 callers
Method
parseObject
(isConst bool)
parser/query.go:305
↓ 1 callers
Method
parseObjectField
(isConst bool)
parser/query.go:316
↓ 1 callers
Method
parseObjectTypeDefinition
(description descriptionWithComment)
parser/schema.go:193
↓ 1 callers
Method
parseObjectTypeExtension
(comment *CommentGroup)
parser/schema.go:471
↓ 1 callers
Method
parseOptionalSelectionSet
()
parser/query.go:124
↓ 1 callers
Method
parseScalarTypeDefinition
(description descriptionWithComment)
parser/schema.go:179
↓ 1 callers
Method
parseScalarTypeExtension
(comment *CommentGroup)
parser/schema.go:456
↓ 1 callers
Method
parseSchemaDefinition
(description descriptionWithComment)
parser/schema.go:153
↓ 1 callers
Method
parseSchemaExtension
(comment *CommentGroup)
parser/schema.go:440
↓ 1 callers
Method
parseTypeSystemDefinition
(description descriptionWithComment)
parser/schema.go:127
↓ 1 callers
Method
parseTypeSystemExtension
(doc *SchemaDocument)
parser/schema.go:417
↓ 1 callers
Method
parseUnionTypeDefinition
(description descriptionWithComment)
parser/schema.go:321
↓ 1 callers
Method
parseUnionTypeExtension
(comment *CommentGroup)
parser/schema.go:504
↓ 1 callers
Method
parseVariableDefinition
()
parser/query.go:100
↓ 1 callers
Method
pathString
()
gqlerror/error.go:69
↓ 1 callers
Method
readBlockString
readBlockString from the input """("?"?(\\"""|\\(?!=""")|[^"\\]))*""".
lexer/lexer.go:466
↓ 1 callers
Method
readComment
readComment from the input #[\u0009\u0020-\uFFFF]*.
lexer/lexer.go:248
↓ 1 callers
Method
readName
readName from the input [_A-Za-z][_0-9A-Za-z]*.
lexer/lexer.go:569
↓ 1 callers
Method
readNumber
readNumber from the input, either a float or an int depending on whether a decimal point appears. Int: -?(0|[1-9][0-9]*) Float: -?(0|[1-9][0-9]*)(\
lexer/lexer.go:269
↓ 1 callers
Method
readString
readString from the input "([^"\\\u000A\u000D]|(\\(u[0-9a-fA-F]{4}|["\\/bfnrt])))*".
lexer/lexer.go:352
↓ 1 callers
Function
registerSchema
(schema)
validator/imported/export.js:58
↓ 1 callers
Function
retrieveTopFieldNames
(selectionSet ast.SelectionSet)
validator/rules/single_field_subscriptions.go:51
↓ 1 callers
Function
runSpec
(t *testing.T, schemas []*ast.Schema, deviations []*Deviation, filename string)
validator/imported_test.go:70
↓ 1 callers
Function
runSpecWithRules
( t *testing.T, schemas []*ast.Schema, deviations []*Deviation, filename string, )
validator/imported_test.go:183
↓ 1 callers
Function
sameValue
(value1, value2 *ast.Value)
validator/rules/overlapping_fields_can_be_merged.go:573
↓ 1 callers
Function
typeName
(t reflect.Type)
ast/dumper.go:81
↓ 1 callers
Function
unhex
(b string)
lexer/lexer.go:548
↓ 1 callers
Function
validateDefinition
(schema *Schema, def *Definition)
validator/schema.go:272
← previous
next →
201–300 of 429, ranked by callers