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

Method _LabelConnection

api/graphql/graph/label.generated.go:686–736  ·  view source on GitHub ↗
(ctx context.Context, sel ast.SelectionSet, obj *models.LabelConnection)

Source from the content-addressed store, hash-verified

684var labelConnectionImplementors = []string{"LabelConnection"}
685
686func (ec *executionContext) _LabelConnection(ctx context.Context, sel ast.SelectionSet, obj *models.LabelConnection) graphql.Marshaler {
687 fields := graphql.CollectFields(ec.OperationContext, sel, labelConnectionImplementors)
688
689 out := graphql.NewFieldSet(fields)
690 deferred := make(map[string]*graphql.FieldSet)
691 for i, field := range fields {
692 switch field.Name {
693 case "__typename":
694 out.Values[i] = graphql.MarshalString("LabelConnection")
695 case "edges":
696 out.Values[i] = ec._LabelConnection_edges(ctx, field, obj)
697 if out.Values[i] == graphql.Null {
698 out.Invalids++
699 }
700 case "nodes":
701 out.Values[i] = ec._LabelConnection_nodes(ctx, field, obj)
702 if out.Values[i] == graphql.Null {
703 out.Invalids++
704 }
705 case "pageInfo":
706 out.Values[i] = ec._LabelConnection_pageInfo(ctx, field, obj)
707 if out.Values[i] == graphql.Null {
708 out.Invalids++
709 }
710 case "totalCount":
711 out.Values[i] = ec._LabelConnection_totalCount(ctx, field, obj)
712 if out.Values[i] == graphql.Null {
713 out.Invalids++
714 }
715 default:
716 panic("unknown field " + strconv.Quote(field.Name))
717 }
718 }
719 out.Dispatch(ctx)
720 if out.Invalids > 0 {
721 return graphql.Null
722 }
723
724 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
725
726 for label, dfs := range deferred {
727 ec.processDeferredGroup(graphql.DeferredGroup{
728 Label: label,
729 Path: graphql.GetPath(ctx),
730 FieldSet: dfs,
731 Context: ctx,
732 })
733 }
734
735 return out
736}
737
738var labelEdgeImplementors = []string{"LabelEdge"}
739

Tested by

no test coverage detected