(ctx context.Context, sel ast.SelectionSet, obj *model.Storage)
| 8093 | var storageImplementors = []string{"Storage"} |
| 8094 | |
| 8095 | func (ec *executionContext) _Storage(ctx context.Context, sel ast.SelectionSet, obj *model.Storage) graphql.Marshaler { |
| 8096 | fields := graphql.CollectFields(ec.OperationContext, sel, storageImplementors) |
| 8097 | |
| 8098 | out := graphql.NewFieldSet(fields) |
| 8099 | deferred := make(map[string]*graphql.FieldSet) |
| 8100 | for i, field := range fields { |
| 8101 | switch field.Name { |
| 8102 | case "__typename": |
| 8103 | out.Values[i] = graphql.MarshalString("Storage") |
| 8104 | case "id": |
| 8105 | out.Values[i] = ec._Storage_id(ctx, field, obj) |
| 8106 | if out.Values[i] == graphql.Null { |
| 8107 | out.Invalids++ |
| 8108 | } |
| 8109 | case "name": |
| 8110 | out.Values[i] = ec._Storage_name(ctx, field, obj) |
| 8111 | if out.Values[i] == graphql.Null { |
| 8112 | out.Invalids++ |
| 8113 | } |
| 8114 | case "type": |
| 8115 | out.Values[i] = ec._Storage_type(ctx, field, obj) |
| 8116 | if out.Values[i] == graphql.Null { |
| 8117 | out.Invalids++ |
| 8118 | } |
| 8119 | case "status": |
| 8120 | out.Values[i] = ec._Storage_status(ctx, field, obj) |
| 8121 | if out.Values[i] == graphql.Null { |
| 8122 | out.Invalids++ |
| 8123 | } |
| 8124 | case "deployment": |
| 8125 | out.Values[i] = ec._Storage_deployment(ctx, field, obj) |
| 8126 | default: |
| 8127 | panic("unknown field " + strconv.Quote(field.Name)) |
| 8128 | } |
| 8129 | } |
| 8130 | out.Dispatch(ctx) |
| 8131 | if out.Invalids > 0 { |
| 8132 | return graphql.Null |
| 8133 | } |
| 8134 | |
| 8135 | atomic.AddInt32(&ec.deferred, int32(len(deferred))) |
| 8136 | |
| 8137 | for label, dfs := range deferred { |
| 8138 | ec.processDeferredGroup(graphql.DeferredGroup{ |
| 8139 | Label: label, |
| 8140 | Path: graphql.GetPath(ctx), |
| 8141 | FieldSet: dfs, |
| 8142 | Context: ctx, |
| 8143 | }) |
| 8144 | } |
| 8145 | |
| 8146 | return out |
| 8147 | } |
| 8148 | |
| 8149 | var storageDeploymentImplementors = []string{"StorageDeployment"} |
| 8150 |
no test coverage detected