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

Method marshalNFloat2float64

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

Source from the content-addressed store, hash-verified

8577}
8578
8579func (ec *executionContext) marshalNFloat2float64(ctx context.Context, sel ast.SelectionSet, v float64) graphql.Marshaler {
8580 res := graphql.MarshalFloatContext(v)
8581 if res == graphql.Null {
8582 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
8583 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
8584 }
8585 }
8586 return graphql.WrapContextMarshaler(ctx, res)
8587}
8588
8589func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) {
8590 res, err := graphql.UnmarshalID(v)

Callers 1

_SearchResult_scoreMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected