(ctx context.Context, field graphql.CollectedField)
| 2053 | } |
| 2054 | |
| 2055 | func (ec *executionContext) _Mutation_deleteRepository(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { |
| 2056 | fc, err := ec.fieldContext_Mutation_deleteRepository(ctx, field) |
| 2057 | if err != nil { |
| 2058 | return graphql.Null |
| 2059 | } |
| 2060 | ctx = graphql.WithFieldContext(ctx, fc) |
| 2061 | defer func() { |
| 2062 | if r := recover(); r != nil { |
| 2063 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 2064 | ret = graphql.Null |
| 2065 | } |
| 2066 | }() |
| 2067 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 2068 | ctx = rctx // use context from middleware stack in children |
| 2069 | return ec.resolvers.Mutation().DeleteRepository(rctx, fc.Args["id"].(string)) |
| 2070 | }) |
| 2071 | if err != nil { |
| 2072 | ec.Error(ctx, err) |
| 2073 | return graphql.Null |
| 2074 | } |
| 2075 | if resTmp == nil { |
| 2076 | if !graphql.HasFieldError(ctx, fc) { |
| 2077 | ec.Errorf(ctx, "must not be null") |
| 2078 | } |
| 2079 | return graphql.Null |
| 2080 | } |
| 2081 | res := resTmp.(*model.Repository) |
| 2082 | fc.Result = res |
| 2083 | return ec.marshalNRepository2ᚖgithubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐRepository(ctx, field.Selections, res) |
| 2084 | } |
| 2085 | |
| 2086 | func (ec *executionContext) fieldContext_Mutation_deleteRepository(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 2087 | fc = &graphql.FieldContext{ |
no test coverage detected