# AliasedAggregateFunctionBuilder (/docs/core/reference/api/interfaces/AliasedAggregateFunctionBuilder)



[@kysoql/core](/docs/core/reference/api) / AliasedAggregateFunctionBuilder

Aliased aggregate expression produced for SELECT output.

## Type Parameters [#type-parameters]

| Type Parameter             |
| -------------------------- |
| `Output`                   |
| `Alias` *extends* `string` |

## Methods [#methods]

<a id="api-tooperationnode" />

### toOperationNode() [#tooperationnode]

```ts
toOperationNode(): AliasNode;
```

Returns the immutable operation node represented by this expression.

#### Returns [#returns]

[`AliasNode`](/docs/core/reference/api/type-aliases/AliasNode)

## Properties [#properties]

| Property                                                                                  | Modifier   | Type                    | Description                                                                                                        |
| ----------------------------------------------------------------------------------------- | ---------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------ |
| <a id="api-property-expressiontype" /> `expressionType`                                   | `readonly` | `Output` \| `undefined` | Type-only output marker used for fluent-query inference; implementations do not expose a meaningful runtime value. |
| <a id="api-property-alias" /> `alias`                                                     | `readonly` | `Alias` \| `undefined`  | Selection alias used as the mapped result property name.                                                           |
| <a id="api-property-aggregatefunctionselectiontype" /> `[aggregateFunctionSelectionType]` | `readonly` | `true`                  | Type-only marker used to preserve this expression capability through TypeScript inference.                         |
