(ctx context.Context, field graphql.CollectedField, obj *model.Repository)
| 3853 | } |
| 3854 | |
| 3855 | func (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 | |
| 3886 | func (ec *executionContext) fieldContext_Repository_owner(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 3887 | fc = &graphql.FieldContext{ |
no test coverage detected