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

Method _Query_repositories

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

Source from the content-addressed store, hash-verified

3075}
3076
3077func (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
3108func (ec *executionContext) fieldContext_Query_repositories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3109 fc = &graphql.FieldContext{

Callers 1

_QueryMethod · 0.95

Tested by

no test coverage detected