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

Function keyNotFoundError

graphql/schema/custom_http.go:132–136  ·  view source on GitHub ↗
(f Field, key string)

Source from the content-addressed store, hash-verified

130}
131
132func keyNotFoundError(f Field, key string) *x.GqlError {
133 return f.GqlErrorf(nil, "Evaluation of custom field failed because key: %s "+
134 "could not be found in the JSON response returned by external request "+
135 "for field: %s within type: %s.", key, f.Name(), f.GetObjectName())
136}
137
138func jsonMarshalError(err error, f Field, input interface{}) *x.GqlError {
139 return f.GqlErrorf(nil, "Evaluation of custom field failed because json marshaling "+

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…