> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# computedAttributeAsAttributeMetadataObject()

- Package: [@gooddata/sdk-model](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/index.md)
- Kind: function
- Stability: beta
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-model/src/ldm/catalog/computedAttribute/index.ts

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Adapts a computed attribute to the attribute metadata surface.

**Signature:**

```typescript
export declare function computedAttributeAsAttributeMetadataObject(computedAttribute: IComputedAttributeMetadataObject): IAttributeMetadataObject;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| computedAttribute | [IComputedAttributeMetadataObject](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.icomputedattributemetadataobject/index.md) |  |

**Returns:**

[IAttributeMetadataObject](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.iattributemetadataobject/index.md)

## Remarks

Only the `type` discriminator is rewritten - the ref, the fabricated display form and the rest of the metadata are kept verbatim. The result therefore CLAIMS to be a plain attribute while its `ref.type` still says `computedAttribute`; the ref is the honest signal, not the `type`. Use it where attribute-shaped consumers must also handle computed attributes.
