(ctx context.Context, field graphql.CollectedField)
| 3075 | } |
| 3076 | |
| 3077 | func (ec *executionContext) _Query_repositories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { |
| 3078 | fc, err := ec.fieldContext_Query_repositories(ctx, field) |
| 3079 | if err != nil { |
| 3080 | return graphql.Null |
| 3081 | } |
| 3082 | ctx = graphql.WithFieldContext(ctx, fc) |
| 3083 | defer func() { |
| 3084 | if r := recover(); r != nil { |
| 3085 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 3086 | ret = graphql.Null |
| 3087 | } |
| 3088 | }() |
| 3089 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 3090 | ctx = rctx // use context from middleware stack in children |
| 3091 | return ec.resolvers.Query().Repositories(rctx) |
| 3092 | }) |
| 3093 | if err != nil { |
| 3094 | ec.Error(ctx, err) |
| 3095 | return graphql.Null |
| 3096 | } |
| 3097 | if resTmp == nil { |
| 3098 | if !graphql.HasFieldError(ctx, fc) { |
| 3099 | ec.Errorf(ctx, "must not be null") |
| 3100 | } |
| 3101 | return graphql.Null |
| 3102 | } |
| 3103 | res := resTmp.([]*model.Repository) |
| 3104 | fc.Result = res |
| 3105 | return ec.marshalNRepository2ᚕᚖgithubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐRepositoryᚄ(ctx, field.Selections, res) |
| 3106 | } |
| 3107 | |
| 3108 | func (ec *executionContext) fieldContext_Query_repositories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 3109 | fc = &graphql.FieldContext{ |
no test coverage detected