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

Method _LabelChangeResult

api/graphql/graph/label.generated.go:642–682  ·  view source on GitHub ↗
(ctx context.Context, sel ast.SelectionSet, obj *bug.LabelChangeResult)

Source from the content-addressed store, hash-verified

640var labelChangeResultImplementors = []string{"LabelChangeResult"}
641
642func (ec *executionContext) _LabelChangeResult(ctx context.Context, sel ast.SelectionSet, obj *bug.LabelChangeResult) graphql.Marshaler {
643 fields := graphql.CollectFields(ec.OperationContext, sel, labelChangeResultImplementors)
644
645 out := graphql.NewFieldSet(fields)
646 deferred := make(map[string]*graphql.FieldSet)
647 for i, field := range fields {
648 switch field.Name {
649 case "__typename":
650 out.Values[i] = graphql.MarshalString("LabelChangeResult")
651 case "label":
652 out.Values[i] = ec._LabelChangeResult_label(ctx, field, obj)
653 if out.Values[i] == graphql.Null {
654 out.Invalids++
655 }
656 case "status":
657 out.Values[i] = ec._LabelChangeResult_status(ctx, field, obj)
658 if out.Values[i] == graphql.Null {
659 out.Invalids++
660 }
661 default:
662 panic("unknown field " + strconv.Quote(field.Name))
663 }
664 }
665 out.Dispatch(ctx)
666 if out.Invalids > 0 {
667 return graphql.Null
668 }
669
670 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
671
672 for label, dfs := range deferred {
673 ec.processDeferredGroup(graphql.DeferredGroup{
674 Label: label,
675 Path: graphql.GetPath(ctx),
676 FieldSet: dfs,
677 Context: ctx,
678 })
679 }
680
681 return out
682}
683
684var labelConnectionImplementors = []string{"LabelConnection"}
685

Calls 3

processDeferredGroupMethod · 0.95

Tested by

no test coverage detected