# PivotQueryHandlerOptions (@salmonui/data/server)

> The PivotQueryHandlerOptions interface of @salmonui/data/server.

Canonical: https://salmonui.dev/docs/reference/data/server/PivotQueryHandlerOptions

```ts
import type { PivotQueryHandlerOptions } from '@salmonui/data/server';
```

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

## Reference

Kind: interface

```ts
interface PivotQueryHandlerOptions {
    readonly engine: PivotEngineFactoryLike;
    readonly fields?: readonly unknown[];
    readonly locale?: string;
    readonly key?: string;
    readonly types?: Readonly<Record<string, WireType>>;
    readonly dict?: readonly string[] | 'auto';
    readonly facetLimit?: number;
    readonly maxCells?: number;
    readonly cacheSize?: number;
}
```

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `engine` | `readonly engine: PivotEngineFactoryLike;` |  | The engine factory: `createPivotEngine` from `@salmonui/pivot-table/engine`. |
| `fields` | `readonly fields?: readonly unknown[];` | optional | Field definitions passed to the engine (server-side: `valueGetter` allowed). |
| `locale` | `readonly locale?: string;` | optional |  |
| `key` | `readonly key?: string;` | optional | Key field for `write` requests (drill-through editing). Default: the first field. |
| `types` | `readonly types?: Readonly<Record<string, WireType>>;` | optional | Wire types of drill-through and `read` rows (default: inferred). |
| `dict` | `readonly dict?: readonly string[] \| 'auto';` | optional | Dictionary-encode drill-through and `read` string fields. |
| `facetLimit` | `readonly facetLimit?: number;` | optional | Max facet entries. Default 1000. |
| `maxCells` | `readonly maxCells?: number;` | optional | Largest window a request may ask for, in cells. Default 250,000. |
| `cacheSize` | `readonly cacheSize?: number;` | optional | Engines kept per distinct `where`. Default 4. |
