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

Function NewDgraphExecutor

graphql/resolve/resolver.go:151–153  ·  view source on GitHub ↗

NewDgraphExecutor builds a DgraphExecutor for proxying requests through dgraph.

()

Source from the content-addressed store, hash-verified

149
150// NewDgraphExecutor builds a DgraphExecutor for proxying requests through dgraph.
151func NewDgraphExecutor() DgraphExecutor {
152 return newDgraphExecutor(&dgraph.DgraphEx{})
153}
154
155func newDgraphExecutor(dg *dgraph.DgraphEx) DgraphExecutor {
156 return &dgraphExecutor{dg: dg}

Callers 2

NewServersFunction · 0.92

Calls 1

newDgraphExecutorFunction · 0.85

Tested by

no test coverage detected