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

Method _Repository_owner

pkg/graph/generated.go:3855–3884  ·  view source on GitHub ↗
(ctx context.Context, field graphql.CollectedField, obj *model.Repository)

Source from the content-addressed store, hash-verified

3853}
3854
3855func (ec *executionContext) _Repository_owner(ctx context.Context, field graphql.CollectedField, obj *model.Repository) (ret graphql.Marshaler) {
3856 fc, err := ec.fieldContext_Repository_owner(ctx, field)
3857 if err != nil {
3858 return graphql.Null
3859 }
3860 ctx = graphql.WithFieldContext(ctx, fc)
3861 defer func() {
3862 if r := recover(); r != nil {
3863 ec.Error(ctx, ec.Recover(ctx, r))
3864 ret = graphql.Null
3865 }
3866 }()
3867 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
3868 ctx = rctx // use context from middleware stack in children
3869 return obj.Owner, nil
3870 })
3871 if err != nil {
3872 ec.Error(ctx, err)
3873 return graphql.Null
3874 }
3875 if resTmp == nil {
3876 if !graphql.HasFieldError(ctx, fc) {
3877 ec.Errorf(ctx, "must not be null")
3878 }
3879 return graphql.Null
3880 }
3881 res := resTmp.(string)
3882 fc.Result = res
3883 return ec.marshalNString2string(ctx, field.Selections, res)
3884}
3885
3886func (ec *executionContext) fieldContext_Repository_owner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
3887 fc = &graphql.FieldContext{

Callers 1

_RepositoryMethod · 0.95

Calls 2

marshalNString2stringMethod · 0.95

Tested by

no test coverage detected