(ctx context.Context, sel ast.SelectionSet, obj *model.Repository)
| 7891 | var repositoryImplementors = []string{"Repository"} |
| 7892 | |
| 7893 | func (ec *executionContext) _Repository(ctx context.Context, sel ast.SelectionSet, obj *model.Repository) graphql.Marshaler { |
| 7894 | fields := graphql.CollectFields(ec.OperationContext, sel, repositoryImplementors) |
| 7895 | |
| 7896 | out := graphql.NewFieldSet(fields) |
| 7897 | deferred := make(map[string]*graphql.FieldSet) |
| 7898 | for i, field := range fields { |
| 7899 | switch field.Name { |
| 7900 | case "__typename": |
| 7901 | out.Values[i] = graphql.MarshalString("Repository") |
| 7902 | case "id": |
| 7903 | out.Values[i] = ec._Repository_id(ctx, field, obj) |
| 7904 | if out.Values[i] == graphql.Null { |
| 7905 | out.Invalids++ |
| 7906 | } |
| 7907 | case "type": |
| 7908 | out.Values[i] = ec._Repository_type(ctx, field, obj) |
| 7909 | if out.Values[i] == graphql.Null { |
| 7910 | out.Invalids++ |
| 7911 | } |
| 7912 | case "displayName": |
| 7913 | out.Values[i] = ec._Repository_displayName(ctx, field, obj) |
| 7914 | if out.Values[i] == graphql.Null { |
| 7915 | out.Invalids++ |
| 7916 | } |
| 7917 | case "owner": |
| 7918 | out.Values[i] = ec._Repository_owner(ctx, field, obj) |
| 7919 | if out.Values[i] == graphql.Null { |
| 7920 | out.Invalids++ |
| 7921 | } |
| 7922 | case "name": |
| 7923 | out.Values[i] = ec._Repository_name(ctx, field, obj) |
| 7924 | if out.Values[i] == graphql.Null { |
| 7925 | out.Invalids++ |
| 7926 | } |
| 7927 | case "url": |
| 7928 | out.Values[i] = ec._Repository_url(ctx, field, obj) |
| 7929 | if out.Values[i] == graphql.Null { |
| 7930 | out.Invalids++ |
| 7931 | } |
| 7932 | default: |
| 7933 | panic("unknown field " + strconv.Quote(field.Name)) |
| 7934 | } |
| 7935 | } |
| 7936 | out.Dispatch(ctx) |
| 7937 | if out.Invalids > 0 { |
| 7938 | return graphql.Null |
| 7939 | } |
| 7940 | |
| 7941 | atomic.AddInt32(&ec.deferred, int32(len(deferred))) |
| 7942 | |
| 7943 | for label, dfs := range deferred { |
| 7944 | ec.processDeferredGroup(graphql.DeferredGroup{ |
| 7945 | Label: label, |
| 7946 | Path: graphql.GetPath(ctx), |
| 7947 | FieldSet: dfs, |
| 7948 | Context: ctx, |
| 7949 | }) |
| 7950 | } |
no test coverage detected