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

Method _Bug_operations

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

Source from the content-addressed store, hash-verified

1164}
1165
1166func (ec *executionContext) _Bug_operations(ctx context.Context, field graphql.CollectedField, obj models.BugWrapper) (ret graphql.Marshaler) {
1167 fc, err := ec.fieldContext_Bug_operations(ctx, field)
1168 if err != nil {
1169 return graphql.Null
1170 }
1171 ctx = graphql.WithFieldContext(ctx, fc)
1172 defer func() {
1173 if r := recover(); r != nil {
1174 ec.Error(ctx, ec.Recover(ctx, r))
1175 ret = graphql.Null
1176 }
1177 }()
1178 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
1179 ctx = rctx // use context from middleware stack in children
1180 return ec.resolvers.Bug().Operations(rctx, obj, fc.Args["after"].(*string), fc.Args["before"].(*string), fc.Args["first"].(*int), fc.Args["last"].(*int))
1181 })
1182 if err != nil {
1183 ec.Error(ctx, err)
1184 return graphql.Null
1185 }
1186 if resTmp == nil {
1187 if !graphql.HasFieldError(ctx, fc) {
1188 ec.Errorf(ctx, "must not be null")
1189 }
1190 return graphql.Null
1191 }
1192 res := resTmp.(*models.OperationConnection)
1193 fc.Result = res
1194 return ec.marshalNOperationConnection2ᚖgithubᚗcomᚋgitᚑbugᚋgitᚑbugᚋapiᚋgraphqlᚋmodelsᚐOperationConnection(ctx, field.Selections, res)
1195}
1196
1197func (ec *executionContext) fieldContext_Bug_operations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1198 fc = &graphql.FieldContext{

Callers 1

_BugMethod · 0.95

Tested by

no test coverage detected