(ctx context.Context, field graphql.CollectedField)
| 3133 | } |
| 3134 | |
| 3135 | func (ec *executionContext) _Query_getRepository(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { |
| 3136 | fc, err := ec.fieldContext_Query_getRepository(ctx, field) |
| 3137 | if err != nil { |
| 3138 | return graphql.Null |
| 3139 | } |
| 3140 | ctx = graphql.WithFieldContext(ctx, fc) |
| 3141 | defer func() { |
| 3142 | if r := recover(); r != nil { |
| 3143 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 3144 | ret = graphql.Null |
| 3145 | } |
| 3146 | }() |
| 3147 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 3148 | ctx = rctx // use context from middleware stack in children |
| 3149 | return ec.resolvers.Query().GetRepository(rctx, fc.Args["id"].(string)) |
| 3150 | }) |
| 3151 | if err != nil { |
| 3152 | ec.Error(ctx, err) |
| 3153 | return graphql.Null |
| 3154 | } |
| 3155 | if resTmp == nil { |
| 3156 | if !graphql.HasFieldError(ctx, fc) { |
| 3157 | ec.Errorf(ctx, "must not be null") |
| 3158 | } |
| 3159 | return graphql.Null |
| 3160 | } |
| 3161 | res := resTmp.(*model.Repository) |
| 3162 | fc.Result = res |
| 3163 | return ec.marshalNRepository2ᚖgithubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐRepository(ctx, field.Selections, res) |
| 3164 | } |
| 3165 | |
| 3166 | func (ec *executionContext) fieldContext_Query_getRepository(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 3167 | fc = &graphql.FieldContext{ |
no test coverage detected