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

Method _Query_pipelines

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

Source from the content-addressed store, hash-verified

3325}
3326
3327func (ec *executionContext) _Query_pipelines(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
3328 fc, err := ec.fieldContext_Query_pipelines(ctx, field)
3329 if err != nil {
3330 return graphql.Null
3331 }
3332 ctx = graphql.WithFieldContext(ctx, fc)
3333 defer func() {
3334 if r := recover(); r != nil {
3335 ec.Error(ctx, ec.Recover(ctx, r))
3336 ret = graphql.Null
3337 }
3338 }()
3339 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3340 ctx = rctx // use context from middleware stack in children
3341 return ec.resolvers.Query().Pipelines(rctx)
3342 })
3343 if err != nil {
3344 ec.Error(ctx, err)
3345 return graphql.Null
3346 }
3347 if resTmp == nil {
3348 if !graphql.HasFieldError(ctx, fc) {
3349 ec.Errorf(ctx, "must not be null")
3350 }
3351 return graphql.Null
3352 }
3353 res := resTmp.([]*model.Pipeline)
3354 fc.Result = res
3355 return ec.marshalNPipeline2ᚕᚖgithubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐPipelineᚄ(ctx, field.Selections, res)
3356}
3357
3358func (ec *executionContext) fieldContext_Query_pipelines(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3359 fc = &graphql.FieldContext{

Callers 1

_QueryMethod · 0.95

Tested by

no test coverage detected