(ctx context.Context, field graphql.CollectedField, obj *model.SearchResult)
| 4205 | } |
| 4206 | |
| 4207 | func (ec *executionContext) _SearchResult_content(ctx context.Context, field graphql.CollectedField, obj *model.SearchResult) (ret graphql.Marshaler) { |
| 4208 | fc, err := ec.fieldContext_SearchResult_content(ctx, field) |
| 4209 | if err != nil { |
| 4210 | return graphql.Null |
| 4211 | } |
| 4212 | ctx = graphql.WithFieldContext(ctx, fc) |
| 4213 | defer func() { |
| 4214 | if r := recover(); r != nil { |
| 4215 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 4216 | ret = graphql.Null |
| 4217 | } |
| 4218 | }() |
| 4219 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 4220 | ctx = rctx // use context from middleware stack in children |
| 4221 | return obj.Content, nil |
| 4222 | }) |
| 4223 | if err != nil { |
| 4224 | ec.Error(ctx, err) |
| 4225 | return graphql.Null |
| 4226 | } |
| 4227 | if resTmp == nil { |
| 4228 | if !graphql.HasFieldError(ctx, fc) { |
| 4229 | ec.Errorf(ctx, "must not be null") |
| 4230 | } |
| 4231 | return graphql.Null |
| 4232 | } |
| 4233 | res := resTmp.(string) |
| 4234 | fc.Result = res |
| 4235 | return ec.marshalNString2string(ctx, field.Selections, res) |
| 4236 | } |
| 4237 | |
| 4238 | func (ec *executionContext) fieldContext_SearchResult_content(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 4239 | fc = &graphql.FieldContext{ |
no test coverage detected