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

FuncType MutationResolverFunc

graphql/resolve/mutation.go:149–149  ·  view source on GitHub ↗

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

func(ctx context.Context, m schema.Mutation) (*Resolved, bool)

Source from the content-addressed store, hash-verified

147// MutationResolverFunc is an adapter that allows to build a MutationResolver from
148// a function. Based on the http.HandlerFunc pattern.
149type MutationResolverFunc func(ctx context.Context, m schema.Mutation) (*Resolved, bool)
150
151// Resolve calls mr(ctx, mutation)
152func (mr MutationResolverFunc) Resolve(ctx context.Context, m schema.Mutation) (*Resolved, bool) {

Callers 11

clientInfoLoginFunction · 0.92
newAdminResolverFactoryFunction · 0.92
ThenMethod · 0.85
GuardianAuthMW4MutationFunction · 0.85
LoggingMWMutationFunction · 0.85
AclOnlyMW4MutationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected