# DataQuery (@salmonui/core/data)

> The DataQuery interface of @salmonui/core/data.

Canonical: https://salmonui.dev/docs/reference/core/data/DataQuery

```ts
import type { DataQuery } from '@salmonui/core/data';
```

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

## Reference

Kind: interface

```ts
interface DataQuery {
    readonly search: SearchDescriptor | null;
    readonly filters: readonly FilterEntry[];
    readonly sorting: readonly SortDescriptor[];
    readonly grouping: readonly GroupDescriptor[];
    readonly aggregates: readonly AggregateDescriptor[];
    readonly paging: PagingDescriptor | null;
    readonly expansion: ExpansionDescriptor;
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `search` | `readonly search: SearchDescriptor \| null;` |  |  |
| `filters` | `readonly filters: readonly FilterEntry[];` |  | Top level: conditions on the same column fold by `predicate`; columns and groups are ANDed. |
| `sorting` | `readonly sorting: readonly SortDescriptor[];` |  |  |
| `grouping` | `readonly grouping: readonly GroupDescriptor[];` |  |  |
| `aggregates` | `readonly aggregates: readonly AggregateDescriptor[];` |  |  |
| `paging` | `readonly paging: PagingDescriptor \| null;` |  | null when the paging module is off. |
| `expansion` | `readonly expansion: ExpansionDescriptor;` |  |  |
