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



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

Typed wrapper around an aggregate HAVING expression node.

## Type Parameters [#type-parameters]

| Type Parameter                 |
| ------------------------------ |
| `DB`                           |
| `TB` *extends* keyof `DB`      |
| `GroupedBy` *extends* `string` |

## Methods [#methods]

<a id="api-tooperationnode" />

### toOperationNode() [#tooperationnode]

```ts
toOperationNode(): OperationNode;
```

Returns the immutable operation node represented by this expression.

#### Returns [#returns]

[`OperationNode`](/docs/core/reference/api/interfaces/OperationNode)

## Properties [#properties]

| Property                                                              | Modifier   | Type        | Description                                                                                |
| --------------------------------------------------------------------- | ---------- | ----------- | ------------------------------------------------------------------------------------------ |
| <a id="api-property-havingexpressiontype" /> `[havingExpressionType]` | `readonly` | `object`    | Type-only marker used to preserve this expression capability through TypeScript inference. |
| `[havingExpressionType].db`                                           | `readonly` | `DB`        | Schema type carried through HAVING-expression inference.                                   |
| `[havingExpressionType].table`                                        | `readonly` | `TB`        | Salesforce object type carried through HAVING-expression inference.                        |
| `[havingExpressionType].groupedBy`                                    | `readonly` | `GroupedBy` | Grouped field names available to this HAVING expression.                                   |
