(ctx context.Context, field graphql.CollectedField, obj *models.Repository)
| 515 | } |
| 516 | |
| 517 | func (ec *executionContext) _Repository_bug(ctx context.Context, field graphql.CollectedField, obj *models.Repository) (ret graphql.Marshaler) { |
| 518 | fc, err := ec.fieldContext_Repository_bug(ctx, field) |
| 519 | if err != nil { |
| 520 | return graphql.Null |
| 521 | } |
| 522 | ctx = graphql.WithFieldContext(ctx, fc) |
| 523 | defer func() { |
| 524 | if r := recover(); r != nil { |
| 525 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 526 | ret = graphql.Null |
| 527 | } |
| 528 | }() |
| 529 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) { |
| 530 | ctx = rctx // use context from middleware stack in children |
| 531 | return ec.resolvers.Repository().Bug(rctx, obj, fc.Args["prefix"].(string)) |
| 532 | }) |
| 533 | if err != nil { |
| 534 | ec.Error(ctx, err) |
| 535 | return graphql.Null |
| 536 | } |
| 537 | if resTmp == nil { |
| 538 | return graphql.Null |
| 539 | } |
| 540 | res := resTmp.(models.BugWrapper) |
| 541 | fc.Result = res |
| 542 | return ec.marshalOBug2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugWrapper(ctx, field.Selections, res) |
| 543 | } |
| 544 | |
| 545 | func (ec *executionContext) fieldContext_Repository_bug(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 546 | fc = &graphql.FieldContext{ |
no test coverage detected