(ctx context.Context, field graphql.CollectedField, obj *model.ModelDeployment)
| 1733 | } |
| 1734 | |
| 1735 | func (ec *executionContext) _ModelDeployment_memory(ctx context.Context, field graphql.CollectedField, obj *model.ModelDeployment) (ret graphql.Marshaler) { |
| 1736 | fc, err := ec.fieldContext_ModelDeployment_memory(ctx, field) |
| 1737 | if err != nil { |
| 1738 | return graphql.Null |
| 1739 | } |
| 1740 | ctx = graphql.WithFieldContext(ctx, fc) |
| 1741 | defer func() { |
| 1742 | if r := recover(); r != nil { |
| 1743 | ec.Error(ctx, ec.Recover(ctx, r)) |
| 1744 | ret = graphql.Null |
| 1745 | } |
| 1746 | }() |
| 1747 | resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { |
| 1748 | ctx = rctx // use context from middleware stack in children |
| 1749 | return obj.Memory, nil |
| 1750 | }) |
| 1751 | if err != nil { |
| 1752 | ec.Error(ctx, err) |
| 1753 | return graphql.Null |
| 1754 | } |
| 1755 | if resTmp == nil { |
| 1756 | if !graphql.HasFieldError(ctx, fc) { |
| 1757 | ec.Errorf(ctx, "must not be null") |
| 1758 | } |
| 1759 | return graphql.Null |
| 1760 | } |
| 1761 | res := resTmp.(string) |
| 1762 | fc.Result = res |
| 1763 | return ec.marshalNString2string(ctx, field.Selections, res) |
| 1764 | } |
| 1765 | |
| 1766 | func (ec *executionContext) fieldContext_ModelDeployment_memory(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { |
| 1767 | fc = &graphql.FieldContext{ |
no test coverage detected