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

Method Resolve

graphql/resolve/resolver.go:694–701  ·  view source on GitHub ↗
(ctx context.Context, field schema.Field)

Source from the content-addressed store, hash-verified

692}
693
694func (hr *httpResolver) Resolve(ctx context.Context, field schema.Field) *Resolved {
695 span := trace.SpanFromContext(ctx)
696 stop := x.SpanTimer(span, "resolveHTTP")
697 defer stop()
698
699 resolved := hr.rewriteAndExecute(ctx, field)
700 return resolved
701}
702
703func (hr *httpResolver) rewriteAndExecute(ctx context.Context, field schema.Field) *Resolved {
704 hrc, err := field.CustomHTTPConfig()

Callers

nothing calls this directly

Calls 2

rewriteAndExecuteMethod · 0.95
SpanTimerFunction · 0.92

Tested by

no test coverage detected