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

Method marshalNInt2int

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

Source from the content-addressed store, hash-verified

8607}
8608
8609func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
8610 res := graphql.MarshalInt(v)
8611 if res == graphql.Null {
8612 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
8613 ec.Errorf(ctx, "the requested element is null which the schema does not allow")
8614 }
8615 }
8616 return res
8617}
8618
8619func (ec *executionContext) marshalNModel2githubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐModel(ctx context.Context, sel ast.SelectionSet, v model.Model) graphql.Marshaler {
8620 return ec._Model(ctx, sel, &v)

Calls

no outgoing calls

Tested by

no test coverage detected