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

Method marshalNBoolean2bool

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

Source from the content-addressed store, hash-verified

8562}
8563
8564func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
8565 res := graphql.MarshalBoolean(v)
8566 if res == graphql.Null {
8567 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
8568 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
8569 }
8570 }
8571 return res
8572}
8573
8574func (ec *executionContext) unmarshalNFloat2float64(ctx context.Context, v interface{}) (float64, error) {
8575 res, err := graphql.UnmarshalFloatContext(ctx, v)

Callers 6

_Pipeline_enabledMethod · 0.95
___Field_isDeprecatedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected