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

Method _Model

pkg/graph/generated.go:7285–7339  ·  view source on GitHub ↗
(ctx context.Context, sel ast.SelectionSet, obj *model.Model)

Source from the content-addressed store, hash-verified

7283var modelImplementors = []string{"Model"}
7284
7285func (ec *executionContext) _Model(ctx context.Context, sel ast.SelectionSet, obj *model.Model) graphql.Marshaler {
7286 fields := graphql.CollectFields(ec.OperationContext, sel, modelImplementors)
7287
7288 out := graphql.NewFieldSet(fields)
7289 deferred := make(map[string]*graphql.FieldSet)
7290 for i, field := range fields {
7291 switch field.Name {
7292 case "__typename":
7293 out.Values[i] = graphql.MarshalString("Model")
7294 case "id":
7295 out.Values[i] = ec._Model_id(ctx, field, obj)
7296 if out.Values[i] == graphql.Null {
7297 out.Invalids++
7298 }
7299 case "type":
7300 out.Values[i] = ec._Model_type(ctx, field, obj)
7301 if out.Values[i] == graphql.Null {
7302 out.Invalids++
7303 }
7304 case "displayName":
7305 out.Values[i] = ec._Model_displayName(ctx, field, obj)
7306 if out.Values[i] == graphql.Null {
7307 out.Invalids++
7308 }
7309 case "status":
7310 out.Values[i] = ec._Model_status(ctx, field, obj)
7311 if out.Values[i] == graphql.Null {
7312 out.Invalids++
7313 }
7314 case "huggingFace":
7315 out.Values[i] = ec._Model_huggingFace(ctx, field, obj)
7316 case "deployment":
7317 out.Values[i] = ec._Model_deployment(ctx, field, obj)
7318 default:
7319 panic("unknown field " + strconv.Quote(field.Name))
7320 }
7321 }
7322 out.Dispatch(ctx)
7323 if out.Invalids > 0 {
7324 return graphql.Null
7325 }
7326
7327 atomic.AddInt32(&ec.deferred, int32(len(deferred)))
7328
7329 for label, dfs := range deferred {
7330 ec.processDeferredGroup(graphql.DeferredGroup{
7331 Label: label,
7332 Path: graphql.GetPath(ctx),
7333 FieldSet: dfs,
7334 Context: ctx,
7335 })
7336 }
7337
7338 return out
7339}
7340
7341var modelDeploymentImplementors = []string{"ModelDeployment"}
7342

Calls 7

_Model_idMethod · 0.95
_Model_typeMethod · 0.95
_Model_displayNameMethod · 0.95
_Model_statusMethod · 0.95
_Model_huggingFaceMethod · 0.95
_Model_deploymentMethod · 0.95
processDeferredGroupMethod · 0.95

Tested by

no test coverage detected