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

Method _Repository_bug

api/graphql/graph/repository.generated.go:517–543  ·  view source on GitHub ↗
(ctx context.Context, field graphql.CollectedField, obj *models.Repository)

Source from the content-addressed store, hash-verified

515}
516
517func (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
545func (ec *executionContext) fieldContext_Repository_bug(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
546 fc = &graphql.FieldContext{

Callers 1

_RepositoryMethod · 0.95

Tested by

no test coverage detected