(ctx context.Context, sel ast.SelectionSet, obj *model.HuggingFace)
| 7234 | var huggingFaceImplementors = []string{"HuggingFace"} |
| 7235 | |
| 7236 | func (ec *executionContext) _HuggingFace(ctx context.Context, sel ast.SelectionSet, obj *model.HuggingFace) graphql.Marshaler { |
| 7237 | fields := graphql.CollectFields(ec.OperationContext, sel, huggingFaceImplementors) |
| 7238 | |
| 7239 | out := graphql.NewFieldSet(fields) |
| 7240 | deferred := make(map[string]*graphql.FieldSet) |
| 7241 | for i, field := range fields { |
| 7242 | switch field.Name { |
| 7243 | case "__typename": |
| 7244 | out.Values[i] = graphql.MarshalString("HuggingFace") |
| 7245 | case "organization": |
| 7246 | out.Values[i] = ec._HuggingFace_organization(ctx, field, obj) |
| 7247 | if out.Values[i] == graphql.Null { |
| 7248 | out.Invalids++ |
| 7249 | } |
| 7250 | case "name": |
| 7251 | out.Values[i] = ec._HuggingFace_name(ctx, field, obj) |
| 7252 | if out.Values[i] == graphql.Null { |
| 7253 | out.Invalids++ |
| 7254 | } |
| 7255 | case "maxSequenceLength": |
| 7256 | out.Values[i] = ec._HuggingFace_maxSequenceLength(ctx, field, obj) |
| 7257 | if out.Values[i] == graphql.Null { |
| 7258 | out.Invalids++ |
| 7259 | } |
| 7260 | default: |
| 7261 | panic("unknown field " + strconv.Quote(field.Name)) |
| 7262 | } |
| 7263 | } |
| 7264 | out.Dispatch(ctx) |
| 7265 | if out.Invalids > 0 { |
| 7266 | return graphql.Null |
| 7267 | } |
| 7268 | |
| 7269 | atomic.AddInt32(&ec.deferred, int32(len(deferred))) |
| 7270 | |
| 7271 | for label, dfs := range deferred { |
| 7272 | ec.processDeferredGroup(graphql.DeferredGroup{ |
| 7273 | Label: label, |
| 7274 | Path: graphql.GetPath(ctx), |
| 7275 | FieldSet: dfs, |
| 7276 | Context: ctx, |
| 7277 | }) |
| 7278 | } |
| 7279 | |
| 7280 | return out |
| 7281 | } |
| 7282 | |
| 7283 | var modelImplementors = []string{"Model"} |
| 7284 |
no test coverage detected