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

Method _Mutation_addPipeline

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

Source from the content-addressed store, hash-verified

2323}
2324
2325func (ec *executionContext) _Mutation_addPipeline(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
2326 fc, err := ec.fieldContext_Mutation_addPipeline(ctx, field)
2327 if err != nil {
2328 return graphql.Null
2329 }
2330 ctx = graphql.WithFieldContext(ctx, fc)
2331 defer func() {
2332 if r := recover(); r != nil {
2333 ec.Error(ctx, ec.Recover(ctx, r))
2334 ret = graphql.Null
2335 }
2336 }()
2337 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
2338 ctx = rctx // use context from middleware stack in children
2339 return ec.resolvers.Mutation().AddPipeline(rctx, fc.Args["input"].(model.AddPipelineInput))
2340 })
2341 if err != nil {
2342 ec.Error(ctx, err)
2343 return graphql.Null
2344 }
2345 if resTmp == nil {
2346 if !graphql.HasFieldError(ctx, fc) {
2347 ec.Errorf(ctx, "must not be null")
2348 }
2349 return graphql.Null
2350 }
2351 res := resTmp.(*model.Pipeline)
2352 fc.Result = res
2353 return ec.marshalNPipeline2ᚖgithubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐPipeline(ctx, field.Selections, res)
2354}
2355
2356func (ec *executionContext) fieldContext_Mutation_addPipeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2357 fc = &graphql.FieldContext{

Callers 1

_MutationMethod · 0.95

Tested by

no test coverage detected