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

Method marshalNString2string

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

Source from the content-addressed store, hash-verified

9051}
9052
9053func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
9054 res := graphql.MarshalString(v)
9055 if res == graphql.Null {
9056 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
9057 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
9058 }
9059 }
9060 return res
9061}
9062
9063func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
9064 return ec.___Directive(ctx, sel, &v)

Callers 15

_HuggingFace_nameMethod · 0.95
_Model_displayNameMethod · 0.95
_ModelDeployment_cpuMethod · 0.95
_Pipeline_nameMethod · 0.95
_Repository_ownerMethod · 0.95
_Repository_nameMethod · 0.95
_Repository_urlMethod · 0.95
_SearchResult_contentMethod · 0.95
_SearchResult_hashMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected