(ctx context.Context, field graphql.CollectedField, obj *model.Repository)
| 3897 | } |
| 3898 | |
| 3899 | func (ec *executionContext) _Repository_name(ctx context.Context, field graphql.CollectedField, obj *model.Repository) (ret graphql.Marshaler) { |
| 3900 | fc, err := ec.fieldContext_Repository_name(ctx, field) |
| 3901 | if err != nil { |
| 3902 | return graphql.Null |
| 3903 | } |
| 3904 | ctx = graphql.WithFieldContext(ctx, fc) |
| 3905 | defer func() { |
| 3906 | if r := recover(); r != nil { |
| 3907 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 3908 | ret = graphql.Null |
| 3909 | } |
| 3910 | }() |
| 3911 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 3912 | ctx = rctx // use context from middleware stack in children |
| 3913 | return obj.Name, nil |
| 3914 | }) |
| 3915 | if err != nil { |
| 3916 | ec.Error(ctx, err) |
| 3917 | return graphql.Null |
| 3918 | } |
| 3919 | if resTmp == nil { |
| 3920 | if !graphql.HasFieldError(ctx, fc) { |
| 3921 | ec.Errorf(ctx, "must not be null") |
| 3922 | } |
| 3923 | return graphql.Null |
| 3924 | } |
| 3925 | res := resTmp.(string) |
| 3926 | fc.Result = res |
| 3927 | return ec.marshalNString2string(ctx, field.Selections, res) |
| 3928 | } |
| 3929 | |
| 3930 | func (ec *executionContext) fieldContext_Repository_name(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 3931 | fc = &graphql.FieldContext{ |
no test coverage detected