MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / externalRequestError

Function externalRequestError

graphql/schema/custom_http.go:150–153  ·  view source on GitHub ↗
(err error, f Field)

Source from the content-addressed store, hash-verified

148}
149
150func externalRequestError(err error, f Field) *x.GqlError {
151 return f.GqlErrorf(nil, "Evaluation of custom field failed because external request"+
152 " returned an error: %s for field: %s within type: %s.", err, f.Name(), f.GetObjectName())
153}
154
155func GetBodyForLambda(ctx context.Context, field Field, parents,
156 args interface{}) map[string]interface{} {

Callers 1

Calls 3

GqlErrorfMethod · 0.65
NameMethod · 0.65
GetObjectNameMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…