(ctx context.Context, field graphql.CollectedField, obj *models.LabelEdge)
| 426 | } |
| 427 | |
| 428 | func (ec *executionContext) _LabelEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *models.LabelEdge) (ret graphql.Marshaler) { |
| 429 | fc, err := ec.fieldContext_LabelEdge_cursor(ctx, field) |
| 430 | if err != nil { |
| 431 | return graphql.Null |
| 432 | } |
| 433 | ctx = graphql.WithFieldContext(ctx, fc) |
| 434 | defer func() { |
| 435 | if r := recover(); r != nil { |
| 436 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 437 | ret = graphql.Null |
| 438 | } |
| 439 | }() |
| 440 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { |
| 441 | ctx = rctx // use context from middleware stack in children |
| 442 | return obj.Cursor, nil |
| 443 | }) |
| 444 | if err != nil { |
| 445 | ec.Error(ctx, err) |
| 446 | return graphql.Null |
| 447 | } |
| 448 | if resTmp == nil { |
| 449 | if !graphql.HasFieldError(ctx, fc) { |
| 450 | ec.Errorf(ctx, "must not be null") |
| 451 | } |
| 452 | return graphql.Null |
| 453 | } |
| 454 | res := resTmp.(string) |
| 455 | fc.Result = res |
| 456 | return ec.marshalNString2string(ctx, field.Selections, res) |
| 457 | } |
| 458 | |
| 459 | func (ec *executionContext) fieldContext_LabelEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 460 | fc = &graphql.FieldContext{ |
no test coverage detected