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

Method _Mutation_addRepository

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

Source from the content-addressed store, hash-verified

1984}
1985
1986func (ec *executionContext) _Mutation_addRepository(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
1987 fc, err := ec.fieldContext_Mutation_addRepository(ctx, field)
1988 if err != nil {
1989 return graphql.Null
1990 }
1991 ctx = graphql.WithFieldContext(ctx, fc)
1992 defer func() {
1993 if r := recover(); r != nil {
1994 ec.Error(ctx, ec.Recover(ctx, r))
1995 ret = graphql.Null
1996 }
1997 }()
1998 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
1999 ctx = rctx // use context from middleware stack in children
2000 return ec.resolvers.Mutation().AddRepository(rctx, fc.Args["input"].(model.AddRepositoryInput))
2001 })
2002 if err != nil {
2003 ec.Error(ctx, err)
2004 return graphql.Null
2005 }
2006 if resTmp == nil {
2007 if !graphql.HasFieldError(ctx, fc) {
2008 ec.Errorf(ctx, "must not be null")
2009 }
2010 return graphql.Null
2011 }
2012 res := resTmp.(*model.Repository)
2013 fc.Result = res
2014 return ec.marshalNRepository2ᚖgithubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐRepository(ctx, field.Selections, res)
2015}
2016
2017func (ec *executionContext) fieldContext_Mutation_addRepository(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
2018 fc = &graphql.FieldContext{

Callers 1

_MutationMethod · 0.95

Tested by

no test coverage detected