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

Struct graphqlHandler

graphql/admin/http.go:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51type graphqlHandler struct {
52 resolver map[uint64]*resolve.RequestResolver
53 handler http.Handler
54 poller map[uint64]*subscription.Poller
55 resolverMux sync.RWMutex // protects resolver from RW races
56 pollerMux sync.RWMutex // protects poller from RW races
57}
58
59// NewServer returns a new IServeGraphQL that can serve the given resolvers
60func NewServer() IServeGraphQL {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected