(ctx context.Context, sel ast.SelectionSet, obj models.IdentityWrapper)
| 705 | var identityImplementors = []string{"Identity"} |
| 706 | |
| 707 | func (ec *executionContext) _Identity(ctx context.Context, sel ast.SelectionSet, obj models.IdentityWrapper) graphql.Marshaler { |
| 708 | fields := graphql.CollectFields(ec.OperationContext, sel, identityImplementors) |
| 709 | |
| 710 | out := graphql.NewFieldSet(fields) |
| 711 | deferred := make(map[string]*graphql.FieldSet) |
| 712 | for i, field := range fields { |
| 713 | switch field.Name { |
| 714 | case "__typename": |
| 715 | out.Values[i] = graphql.MarshalString("Identity") |
| 716 | case "id": |
| 717 | out.Values[i] = ec._Identity_id(ctx, field, obj) |
| 718 | if out.Values[i] == graphql.Null { |
| 719 | atomic.AddUint32(&out.Invalids, 1) |
| 720 | } |
| 721 | case "humanId": |
| 722 | field := field |
| 723 | |
| 724 | innerFunc := func(ctx context.Context, fs *graphql.FieldSet) (res graphql.Marshaler) { |
| 725 | defer func() { |
| 726 | if r := recover(); r != nil { |
| 727 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 728 | } |
| 729 | }() |
| 730 | res = ec._Identity_humanId(ctx, field, obj) |
| 731 | if res == graphql.Null { |
| 732 | atomic.AddUint32(&fs.Invalids, 1) |
| 733 | } |
| 734 | return res |
| 735 | } |
| 736 | |
| 737 | if field.Deferrable != nil { |
| 738 | dfs, ok := deferred[field.Deferrable.Label] |
| 739 | di := 0 |
| 740 | if ok { |
| 741 | dfs.AddField(field) |
| 742 | di = len(dfs.Values) - 1 |
| 743 | } else { |
| 744 | dfs = graphql.NewFieldSet([]graphql.CollectedField{field}) |
| 745 | deferred[field.Deferrable.Label] = dfs |
| 746 | } |
| 747 | dfs.Concurrently(di, func(ctx context.Context) graphql.Marshaler { |
| 748 | return innerFunc(ctx, dfs) |
| 749 | }) |
| 750 | |
| 751 | // don't run the out.Concurrently() call below |
| 752 | out.Values[i] = graphql.Null |
| 753 | continue |
| 754 | } |
| 755 | |
| 756 | out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) |
| 757 | case "name": |
| 758 | out.Values[i] = ec._Identity_name(ctx, field, obj) |
| 759 | case "email": |
| 760 | out.Values[i] = ec._Identity_email(ctx, field, obj) |
| 761 | case "login": |
| 762 | out.Values[i] = ec._Identity_login(ctx, field, obj) |
| 763 | case "displayName": |
| 764 | out.Values[i] = ec._Identity_displayName(ctx, field, obj) |
no test coverage detected