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

Function EmptyResult

graphql/resolve/resolver.go:740–746  ·  view source on GitHub ↗
(f schema.Field, err error)

Source from the content-addressed store, hash-verified

738}
739
740func EmptyResult(f schema.Field, err error) *Resolved {
741 return &Resolved{
742 Data: f.NullResponse(),
743 Field: f,
744 Err: schema.GQLWrapLocationf(err, f.Location(), "resolving %s failed", f.Name()),
745 }
746}
747
748func DataResult(f schema.Field, data map[string]interface{}, err error) *Resolved {
749 b, errs := schema.CompleteObject(f.PreAllocatePathSlice(), []schema.Field{f}, data)

Callers 15

resolveBackupFunction · 0.92
resolveExportFunction · 0.92
ResolveMethod · 0.92
ResolveMethod · 0.92
resolveLoginFunction · 0.92
resolveMoveTabletFunction · 0.92
resolveRemoveNodeFunction · 0.92
resolveResetPasswordFunction · 0.92
resetSchemaMethod · 0.92
resolveHealthFunction · 0.92
resolveTenantRestoreFunction · 0.92
resolveRestoreFunction · 0.92

Calls 4

GQLWrapLocationfFunction · 0.92
NullResponseMethod · 0.65
LocationMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected