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

Function LoggingMWQuery

graphql/resolve/middlewares.go:170–175  ·  view source on GitHub ↗
(resolver QueryResolver)

Source from the content-addressed store, hash-verified

168}
169
170func LoggingMWQuery(resolver QueryResolver) QueryResolver {
171 return QueryResolverFunc(func(ctx context.Context, query schema.Query) *Resolved {
172 glog.Infof("GraphQL admin query. Name = %v", query.Name())
173 return resolver.Resolve(ctx, query)
174 })
175}
176
177// GuardianOfTheGalaxyAuthMW4Mutation blocks the resolution of resolverFunc if there is no Guardian
178// of Galaxy auth present in context, otherwise it lets the resolverFunc resolve the mutation.

Callers

nothing calls this directly

Calls 4

QueryResolverFuncFuncType · 0.85
InfofMethod · 0.80
NameMethod · 0.65
ResolveMethod · 0.65

Tested by

no test coverage detected