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

Method _Mutation_triggerPipeline

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

Source from the content-addressed store, hash-verified

2461}
2462
2463func (ec *executionContext) _Mutation_triggerPipeline(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
2464 fc, err := ec.fieldContext_Mutation_triggerPipeline(ctx, field)
2465 if err != nil {
2466 return graphql.Null
2467 }
2468 ctx = graphql.WithFieldContext(ctx, fc)
2469 defer func() {
2470 if r := recover(); r != nil {
2471 ec.Error(ctx, ec.Recover(ctx, r))
2472 ret = graphql.Null
2473 }
2474 }()
2475 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2476 ctx = rctx // use context from middleware stack in children
2477 return ec.resolvers.Mutation().TriggerPipeline(rctx, fc.Args["id"].(string))
2478 })
2479 if err != nil {
2480 ec.Error(ctx, err)
2481 return graphql.Null
2482 }
2483 if resTmp == nil {
2484 if !graphql.HasFieldError(ctx, fc) {
2485 ec.Errorf(ctx, "must not be null")
2486 }
2487 return graphql.Null
2488 }
2489 res := resTmp.(*model.PipelineExecution)
2490 fc.Result = res
2491 return ec.marshalNPipelineExecution2ᚖgithubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐPipelineExecution(ctx, field.Selections, res)
2492}
2493
2494func (ec *executionContext) fieldContext_Mutation_triggerPipeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2495 fc = &graphql.FieldContext{

Callers 1

_MutationMethod · 0.95

Tested by

no test coverage detected