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

Method _Bug_timeline

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

Source from the content-addressed store, hash-verified

1099}
1100
1101func (ec *executionContext) _Bug_timeline(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper) (ret graphql.Marshaler) {
1102 fc, err := ec.fieldContext_Bug_timeline(ctx, field)
1103 if err != nil {
1104 return graphql.Null
1105 }
1106 ctx = graphql.WithFieldContext(ctx, fc)
1107 defer func() {
1108 if r := recover(); r != nil {
1109 ec.Error(ctx, ec.Recover(ctx, r))
1110 ret = graphql.Null
1111 }
1112 }()
1113 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1114 ctx = rctx // use context from middleware stack in children
1115 return ec.resolvers.Bug().Timeline(rctx, obj, fc.Args["after"].(*string), fc.Args["before"].(*string), fc.Args["first"].(*int), fc.Args["last"].(*int))
1116 })
1117 if err != nil {
1118 ec.Error(ctx, err)
1119 return graphql.Null
1120 }
1121 if resTmp == nil {
1122 if !graphql.HasFieldError(ctx, fc) {
1123 ec.Errorf(ctx, "must not be null")
1124 }
1125 return graphql.Null
1126 }
1127 res := resTmp.(*models.BugTimelineItemConnection)
1128 fc.Result = res
1129 return ec.marshalNBugTimelineItemConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐBugTimelineItemConnection(ctx, field.Selections, res)
1130}
1131
1132func (ec *executionContext) fieldContext_Bug_timeline(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1133 fc = &graphql.FieldContext{

Callers 1

_BugMethod · 0.95

Tested by

no test coverage detected