MCPcopy Create free account
hub / github.com/git-bug/git-bug / _Bug_status

Method _Bug_status

api/graphql/graph/bug.generated.go:618–647  ·  view source on GitHub ↗
(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper)

Source from the content-addressed store, hash-verified

616}
617
618func (ec *executionContext) _Bug_status(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper) (ret graphql.Marshaler) {
619 fc, err := ec.fieldContext_Bug_status(ctx, field)
620 if err != nil {
621 return graphql.Null
622 }
623 ctx = graphql.WithFieldContext(ctx, fc)
624 defer func() {
625 if r := recover(); r != nil {
626 ec.Error(ctx, ec.Recover(ctx, r))
627 ret = graphql.Null
628 }
629 }()
630 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
631 ctx = rctx // use context from middleware stack in children
632 return obj.Status(), nil
633 })
634 if err != nil {
635 ec.Error(ctx, err)
636 return graphql.Null
637 }
638 if resTmp == nil {
639 if !graphql.HasFieldError(ctx, fc) {
640 ec.Errorf(ctx, "must not be null")
641 }
642 return graphql.Null
643 }
644 res := resTmp.(common.Status)
645 fc.Result = res
646 return ec.marshalNStatus2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋcommonᚐStatus(ctx, field.Selections, res)
647}
648
649func (ec *executionContext) fieldContext_Bug_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
650 fc = &graphql.FieldContext{

Callers 1

_BugMethod · 0.95

Tested by

no test coverage detected