MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / NewQueryResolver

Function NewQueryResolver

graphql/resolve/query.go:51–53  ·  view source on GitHub ↗

NewQueryResolver creates a new query resolver. The resolver runs the pipeline: 1) rewrite the query using qr (return error if failed) 2) execute the rewritten query with ex (return error if failed) 3) process the result with rc

(qr QueryRewriter, ex DgraphExecutor)

Source from the content-addressed store, hash-verified

49// 2) execute the rewritten query with ex (return error if failed)
50// 3) process the result with rc
51func NewQueryResolver(qr QueryRewriter, ex DgraphExecutor) QueryResolver {
52 return &queryResolver{queryRewriter: qr, executor: ex, resultCompleter: CompletionFunc(noopCompletion)}
53}
54
55// NewEntitiesQueryResolver creates a new query resolver for `_entities` query.
56// It is introduced because result completion works little different for `_entities` query.

Callers 2

Calls 1

CompletionFuncFuncType · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…