(ctx context.Context, sel ast.SelectionSet, obj *models.LabelEdge)
| 738 | var labelEdgeImplementors = []string{"LabelEdge"} |
| 739 | |
| 740 | func (ec *executionContext) _LabelEdge(ctx context.Context, sel ast.SelectionSet, obj *models.LabelEdge) graphql.Marshaler { |
| 741 | fields := graphql.CollectFields(ec.OperationContext, sel, labelEdgeImplementors) |
| 742 | |
| 743 | out := graphql.NewFieldSet(fields) |
| 744 | deferred := make(map[string]*graphql.FieldSet) |
| 745 | for i, field := range fields { |
| 746 | switch field.Name { |
| 747 | case "__typename": |
| 748 | out.Values[i] = graphql.MarshalString("LabelEdge") |
| 749 | case "cursor": |
| 750 | out.Values[i] = ec._LabelEdge_cursor(ctx, field, obj) |
| 751 | if out.Values[i] == graphql.Null { |
| 752 | out.Invalids++ |
| 753 | } |
| 754 | case "node": |
| 755 | out.Values[i] = ec._LabelEdge_node(ctx, field, obj) |
| 756 | if out.Values[i] == graphql.Null { |
| 757 | out.Invalids++ |
| 758 | } |
| 759 | default: |
| 760 | panic("unknown field " + strconv.Quote(field.Name)) |
| 761 | } |
| 762 | } |
| 763 | out.Dispatch(ctx) |
| 764 | if out.Invalids > 0 { |
| 765 | return graphql.Null |
| 766 | } |
| 767 | |
| 768 | atomic.AddInt32(&ec.deferred, int32(len(deferred))) |
| 769 | |
| 770 | for label, dfs := range deferred { |
| 771 | ec.processDeferredGroup(graphql.DeferredGroup{ |
| 772 | Label: label, |
| 773 | Path: graphql.GetPath(ctx), |
| 774 | FieldSet: dfs, |
| 775 | Context: ctx, |
| 776 | }) |
| 777 | } |
| 778 | |
| 779 | return out |
| 780 | } |
| 781 | |
| 782 | // endregion **************************** object.gotpl **************************** |
| 783 |
no test coverage detected