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

Method _Mutation_deletePipeline

pkg/graph/generated.go:2524–2553  ·  view source on GitHub ↗
(ctx context.Context, field graphql.CollectedField)

Source from the content-addressed store, hash-verified

2522}
2523
2524func (ec *executionContext) _Mutation_deletePipeline(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
2525 fc, err := ec.fieldContext_Mutation_deletePipeline(ctx, field)
2526 if err != nil {
2527 return graphql.Null
2528 }
2529 ctx = graphql.WithFieldContext(ctx, fc)
2530 defer func() {
2531 if r := recover(); r != nil {
2532 ec.Error(ctx, ec.Recover(ctx, r))
2533 ret = graphql.Null
2534 }
2535 }()
2536 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2537 ctx = rctx // use context from middleware stack in children
2538 return ec.resolvers.Mutation().DeletePipeline(rctx, fc.Args["id"].(string))
2539 })
2540 if err != nil {
2541 ec.Error(ctx, err)
2542 return graphql.Null
2543 }
2544 if resTmp == nil {
2545 if !graphql.HasFieldError(ctx, fc) {
2546 ec.Errorf(ctx, "must not be null")
2547 }
2548 return graphql.Null
2549 }
2550 res := resTmp.(*model.Pipeline)
2551 fc.Result = res
2552 return ec.marshalNPipeline2ᚖgithubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐPipeline(ctx, field.Selections, res)
2553}
2554
2555func (ec *executionContext) fieldContext_Mutation_deletePipeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2556 fc = &graphql.FieldContext{

Callers 1

_MutationMethod · 0.95

Tested by

no test coverage detected