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

Method _Bug_participants

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

Source from the content-addressed store, hash-verified

969}
970
971func (ec *executionContext) _Bug_participants(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper) (ret graphql.Marshaler) {
972 fc, err := ec.fieldContext_Bug_participants(ctx, field)
973 if err != nil {
974 return graphql.Null
975 }
976 ctx = graphql.WithFieldContext(ctx, fc)
977 defer func() {
978 if r := recover(); r != nil {
979 ec.Error(ctx, ec.Recover(ctx, r))
980 ret = graphql.Null
981 }
982 }()
983 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
984 ctx = rctx // use context from middleware stack in children
985 return ec.resolvers.Bug().Participants(rctx, obj, fc.Args["after"].(*string), fc.Args["before"].(*string), fc.Args["first"].(*int), fc.Args["last"].(*int))
986 })
987 if err != nil {
988 ec.Error(ctx, err)
989 return graphql.Null
990 }
991 if resTmp == nil {
992 if !graphql.HasFieldError(ctx, fc) {
993 ec.Errorf(ctx, "must not be null")
994 }
995 return graphql.Null
996 }
997 res := resTmp.(*models.IdentityConnection)
998 fc.Result = res
999 return ec.marshalNIdentityConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐIdentityConnection(ctx, field.Selections, res)
1000}
1001
1002func (ec *executionContext) fieldContext_Bug_participants(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1003 fc = &graphql.FieldContext{

Callers 1

_BugMethod · 0.95

Tested by

no test coverage detected