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

Method _LabelEdge_node

api/graphql/graph/label.generated.go:472–501  ·  view source on GitHub ↗
(ctx context.Context, field graphql.CollectedField, obj *models.LabelEdge)

Source from the content-addressed store, hash-verified

470}
471
472func (ec *executionContext) _LabelEdge_node(ctx context.Context, field graphql.CollectedField, obj *models.LabelEdge) (ret graphql.Marshaler) {
473 fc, err := ec.fieldContext_LabelEdge_node(ctx, field)
474 if err != nil {
475 return graphql.Null
476 }
477 ctx = graphql.WithFieldContext(ctx, fc)
478 defer func() {
479 if r := recover(); r != nil {
480 ec.Error(ctx, ec.Recover(ctx, r))
481 ret = graphql.Null
482 }
483 }()
484 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (any, error) {
485 ctx = rctx // use context from middleware stack in children
486 return obj.Node, nil
487 })
488 if err != nil {
489 ec.Error(ctx, err)
490 return graphql.Null
491 }
492 if resTmp == nil {
493 if !graphql.HasFieldError(ctx, fc) {
494 ec.Errorf(ctx, "must not be null")
495 }
496 return graphql.Null
497 }
498 res := resTmp.(common.Label)
499 fc.Result = res
500 return ec.marshalNLabel2githubᚗcomᚋgitᚑbugᚋgitᚑbugᚋentitiesᚋcommonᚐLabel(ctx, field.Selections, res)
501}
502
503func (ec *executionContext) fieldContext_LabelEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
504 fc = &graphql.FieldContext{

Callers 1

_LabelEdgeMethod · 0.95

Tested by

no test coverage detected