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

FuncType QueryResolverFunc

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

QueryResolverFunc is an adapter that allows to build a QueryResolver from a function. Based on the http.HandlerFunc pattern.

func(ctx context.Context, query schema.Query) *Resolved

Source from the content-addressed store, hash-verified

38// QueryResolverFunc is an adapter that allows to build a QueryResolver from
39// a function. Based on the http.HandlerFunc pattern.
40type QueryResolverFunc func(ctx context.Context, query schema.Query) *Resolved
41
42// Resolve calls qr(ctx, query)
43func (qr QueryResolverFunc) Resolve(ctx context.Context, query schema.Query) *Resolved {

Callers 10

newAdminResolverFactoryFunction · 0.92
resetSchemaMethod · 0.92
ThenMethod · 0.85
GuardianAuthMW4QueryFunction · 0.85
IpWhitelistingMW4QueryFunction · 0.85
LoggingMWQueryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected