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

Method _Query_getPipelineExecutions

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

Source from the content-addressed store, hash-verified

3452}
3453
3454func (ec *executionContext) _Query_getPipelineExecutions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
3455 fc, err := ec.fieldContext_Query_getPipelineExecutions(ctx, field)
3456 if err != nil {
3457 return graphql.Null
3458 }
3459 ctx = graphql.WithFieldContext(ctx, fc)
3460 defer func() {
3461 if r := recover(); r != nil {
3462 ec.Error(ctx, ec.Recover(ctx, r))
3463 ret = graphql.Null
3464 }
3465 }()
3466 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3467 ctx = rctx // use context from middleware stack in children
3468 return ec.resolvers.Query().GetPipelineExecutions(rctx, fc.Args["id"].(string))
3469 })
3470 if err != nil {
3471 ec.Error(ctx, err)
3472 return graphql.Null
3473 }
3474 if resTmp == nil {
3475 if !graphql.HasFieldError(ctx, fc) {
3476 ec.Errorf(ctx, "must not be null")
3477 }
3478 return graphql.Null
3479 }
3480 res := resTmp.([]*model.PipelineExecution)
3481 fc.Result = res
3482 return ec.marshalNPipelineExecution2ᚕᚖgithubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐPipelineExecutionᚄ(ctx, field.Selections, res)
3483}
3484
3485func (ec *executionContext) fieldContext_Query_getPipelineExecutions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3486 fc = &graphql.FieldContext{

Callers 1

_QueryMethod · 0.95

Tested by

no test coverage detected