(ctx context.Context, field graphql.CollectedField, obj *model.SearchResult)
| 4425 | } |
| 4426 | |
| 4427 | func (ec *executionContext) _SearchResult_startIndex(ctx context.Context, field graphql.CollectedField, obj *model.SearchResult) (ret graphql.Marshaler) { |
| 4428 | fc, err := ec.fieldContext_SearchResult_startIndex(ctx, field) |
| 4429 | if err != nil { |
| 4430 | return graphql.Null |
| 4431 | } |
| 4432 | ctx = graphql.WithFieldContext(ctx, fc) |
| 4433 | defer func() { |
| 4434 | if r := recover(); r != nil { |
| 4435 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 4436 | ret = graphql.Null |
| 4437 | } |
| 4438 | }() |
| 4439 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 4440 | ctx = rctx // use context from middleware stack in children |
| 4441 | return obj.StartIndex, nil |
| 4442 | }) |
| 4443 | if err != nil { |
| 4444 | ec.Error(ctx, err) |
| 4445 | return graphql.Null |
| 4446 | } |
| 4447 | if resTmp == nil { |
| 4448 | if !graphql.HasFieldError(ctx, fc) { |
| 4449 | ec.Errorf(ctx, "must not be null") |
| 4450 | } |
| 4451 | return graphql.Null |
| 4452 | } |
| 4453 | res := resTmp.(int) |
| 4454 | fc.Result = res |
| 4455 | return ec.marshalNInt2int(ctx, field.Selections, res) |
| 4456 | } |
| 4457 | |
| 4458 | func (ec *executionContext) fieldContext_SearchResult_startIndex(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 4459 | fc = &graphql.FieldContext{ |
no test coverage detected