MCPcopy
hub / github.com/dgraph-io/dgraph / Parse

Function Parse

dql/parser.go:615–617  ·  view source on GitHub ↗

Parse initializes and runs the lexer. It also constructs the GraphQuery subgraph from the lexed items.

(r Request)

Source from the content-addressed store, hash-verified

613// Parse initializes and runs the lexer. It also constructs the GraphQuery subgraph
614// from the lexed items.
615func Parse(r Request) (Result, error) {
616 return ParseWithNeedVars(r, nil)
617}
618
619// ParseWithNeedVars performs parsing of a query with given needVars.
620//

Callers 15

NewMCPServerFunction · 0.92
processToFastJSONFunction · 0.92
TestVarInAggErrorFunction · 0.92
queryRewritingFunction · 0.92
mutationQueryRewritingFunction · 0.92
TestParseMathSubsFunction · 0.70
TestParseCountValErrorFunction · 0.70
TestParseQueryNamedQueryFunction · 0.70
TestParseVarErrorFunction · 0.70

Calls 1

ParseWithNeedVarsFunction · 0.85

Tested by 15

processToFastJSONFunction · 0.74
TestVarInAggErrorFunction · 0.74
queryRewritingFunction · 0.74
mutationQueryRewritingFunction · 0.74
TestParseMathSubsFunction · 0.56
TestParseCountValErrorFunction · 0.56
TestParseQueryNamedQueryFunction · 0.56
TestParseVarErrorFunction · 0.56
TestParseQueryListPred1Function · 0.56