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



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

Immutable query AST node for a Salesforce aggregate function.

## Properties [#properties]

| Property                                       | Modifier   | Type                                                                           | Description                                                      |
| ---------------------------------------------- | ---------- | ------------------------------------------------------------------------------ | ---------------------------------------------------------------- |
| <a id="api-property-kind" /> `kind`            | `readonly` | `"AggregateFunctionNode"`                                                      | Node discriminator used by Kysoql compilers and plugin visitors. |
| <a id="api-property-function" /> `function`    | `readonly` | [`AggregateFunction`](/docs/core/reference/api/type-aliases/AggregateFunction) | Salesforce function represented by this node.                    |
| <a id="api-property-reference" /> `reference?` | `readonly` | [`ReferenceNode`](/docs/core/reference/api/type-aliases/ReferenceNode)         | Field or relationship reference passed to the expression.        |
