MCPcopy Index your code
hub / github.com/git-bug/git-bug / _Bug_comments

Method _Bug_comments

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

Source from the content-addressed store, hash-verified

1034}
1035
1036func (ec *executionContext) _Bug_comments(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper) (ret graphql.Marshaler) {
1037 fc, err := ec.fieldContext_Bug_comments(ctx, field)
1038 if err != nil {
1039 return graphql.Null
1040 }
1041 ctx = graphql.WithFieldContext(ctx, fc)
1042 defer func() {
1043 if r := recover(); r != nil {
1044 ec.Error(ctx, ec.Recover(ctx, r))
1045 ret = graphql.Null
1046 }
1047 }()
1048 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1049 ctx = rctx // use context from middleware stack in children
1050 return ec.resolvers.Bug().Comments(rctx, obj, fc.Args["after"].(*string), fc.Args["before"].(*string), fc.Args["first"].(*int), fc.Args["last"].(*int))
1051 })
1052 if err != nil {
1053 ec.Error(ctx, err)
1054 return graphql.Null
1055 }
1056 if resTmp == nil {
1057 if !graphql.HasFieldError(ctx, fc) {
1058 ec.Errorf(ctx, "must not be null")
1059 }
1060 return graphql.Null
1061 }
1062 res := resTmp.(*models.BugCommentConnection)
1063 fc.Result = res
1064 return ec.marshalNBugCommentConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugCommentConnection(ctx, field.Selections, res)
1065}
1066
1067func (ec *executionContext) fieldContext_Bug_comments(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1068 fc = &graphql.FieldContext{

Callers 1

_BugMethod · 0.95

Tested by

no test coverage detected