MCPcopy Create free account
hub / github.com/vektah/gqlparser / ParseQuery

Function ParseQuery

parser/query.go:8–14  ·  view source on GitHub ↗
(source *Source)

Source from the content-addressed store, hash-verified

6)
7
8func ParseQuery(source *Source) (*QueryDocument, error) {
9 p := parser{
10 lexer: lexer.New(source),
11 maxTokenLimit: 0, // 0 means unlimited
12 }
13 return p.parseQueryDocument(), p.err
14}
15
16func ParseQueryWithTokenLimit(source *Source, maxTokenLimit int) (*QueryDocument, error) {
17 p := parser{

Callers 15

LoadQueryFunction · 0.92
LoadQueryWithRulesFunction · 0.92
TestQueryDocMethodsFunction · 0.92
TestWalkerFunction · 0.92
TestWalkInlineFragmentFunction · 0.92
TestNoUnusedVariablesFunction · 0.92
TestCustomRuleSetFunction · 0.92

Calls 2

parseQueryDocumentMethod · 0.95
NewFunction · 0.92

Tested by 13

TestQueryDocMethodsFunction · 0.74
TestWalkerFunction · 0.74
TestWalkInlineFragmentFunction · 0.74
TestNoUnusedVariablesFunction · 0.74
TestCustomRuleSetFunction · 0.74
TestQueryDocumentFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…