MCPcopy Create free account
hub / github.com/encoder-run/operator / marshalNID2string

Method marshalNID2string

pkg/graph/generated.go:8594–8602  ·  view source on GitHub ↗
(ctx context.Context, sel ast.SelectionSet, v string)

Source from the content-addressed store, hash-verified

8592}
8593
8594func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
8595 res := graphql.MarshalID(v)
8596 if res == graphql.Null {
8597 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
8598 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
8599 }
8600 }
8601 return res
8602}
8603
8604func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) {
8605 res, err := graphql.UnmarshalInt(v)

Callers 9

_Model_idMethod · 0.95
_Pipeline_idMethod · 0.95
_PipelineExecution_idMethod · 0.95
_Repository_idMethod · 0.95
_SearchResult_idMethod · 0.95
_Storage_idMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected