MCPcopy Create free account
hub / github.com/encoder-run/operator / _Model_huggingFace

Method _Model_huggingFace

pkg/graph/generated.go:1549–1575  ·  view source on GitHub ↗
(ctx context.Context, field graphql.CollectedField, obj *model.Model)

Source from the content-addressed store, hash-verified

1547}
1548
1549func (ec *executionContext) _Model_huggingFace(ctx context.Context, field graphql.CollectedField, obj *model.Model) (ret graphql.Marshaler) {
1550 fc, err := ec.fieldContext_Model_huggingFace(ctx, field)
1551 if err != nil {
1552 return graphql.Null
1553 }
1554 ctx = graphql.WithFieldContext(ctx, fc)
1555 defer func() {
1556 if r := recover(); r != nil {
1557 ec.Error(ctx, ec.Recover(ctx, r))
1558 ret = graphql.Null
1559 }
1560 }()
1561 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
1562 ctx = rctx // use context from middleware stack in children
1563 return obj.HuggingFace, nil
1564 })
1565 if err != nil {
1566 ec.Error(ctx, err)
1567 return graphql.Null
1568 }
1569 if resTmp == nil {
1570 return graphql.Null
1571 }
1572 res := resTmp.(*model.HuggingFace)
1573 fc.Result = res
1574 return ec.marshalOHuggingFace2ᚖgithubᚗcomᚋencoderᚑrunᚋoperatorᚋpkgᚋgraphᚋmodelᚐHuggingFace(ctx, field.Selections, res)
1575}
1576
1577func (ec *executionContext) fieldContext_Model_huggingFace(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) {
1578 fc = &graphql.FieldContext{

Callers 1

_ModelMethod · 0.95

Tested by

no test coverage detected