(ctx context.Context, field graphql.CollectedField, obj *model.ModelDeployment)
| 1645 | } |
| 1646 | |
| 1647 | func (ec *executionContext) _ModelDeployment_enabled(ctx context.Context, field graphql.CollectedField, obj *model.ModelDeployment) (ret graphql.Marshaler) { |
| 1648 | fc, err := ec.fieldContext_ModelDeployment_enabled(ctx, field) |
| 1649 | if err != nil { |
| 1650 | return graphql.Null |
| 1651 | } |
| 1652 | ctx = graphql.WithFieldContext(ctx, fc) |
| 1653 | defer func() { |
| 1654 | if r := recover(); r != nil { |
| 1655 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 1656 | ret = graphql.Null |
| 1657 | } |
| 1658 | }() |
| 1659 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 1660 | ctx = rctx // use context from middleware stack in children |
| 1661 | return obj.Enabled, nil |
| 1662 | }) |
| 1663 | if err != nil { |
| 1664 | ec.Error(ctx, err) |
| 1665 | return graphql.Null |
| 1666 | } |
| 1667 | if resTmp == nil { |
| 1668 | if !graphql.HasFieldError(ctx, fc) { |
| 1669 | ec.Errorf(ctx, "must not be null") |
| 1670 | } |
| 1671 | return graphql.Null |
| 1672 | } |
| 1673 | res := resTmp.(bool) |
| 1674 | fc.Result = res |
| 1675 | return ec.marshalNBoolean2bool(ctx, field.Selections, res) |
| 1676 | } |
| 1677 | |
| 1678 | func (ec *executionContext) fieldContext_ModelDeployment_enabled(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 1679 | fc = &graphql.FieldContext{ |
no test coverage detected