# createAggregatesModule (@salmonui/data-grid/engine)

> The createAggregatesModule function of @salmonui/data-grid/engine: Creates the aggregates module. Options come from options.aggregates (AggregatesOptions); the initial descriptors from options.defaultQuery.aggregates.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine/createAggregatesModule

```ts
import { createAggregatesModule } from '@salmonui/data-grid/engine';
```

Also exported from `@salmonui/data-grid`, `@salmonui/data-grid/engine/aggregates`.

Entry index: https://salmonui.dev/docs/reference/data-grid/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine.md).

## Reference

Kind: function

```ts
function createAggregatesModule<Row>(): AggregatesModule<Row>;
```

Creates the `aggregates` module. Options come from
`options.aggregates` (`AggregatesOptions`); the initial descriptors from
`options.defaultQuery.aggregates`.
