# WireQuery (@salmonui/data/json)

> The WireQuery interface of @salmonui/data/json.

Canonical: https://salmonui.dev/docs/reference/data/json/WireQuery

```ts
import type { WireQuery } from '@salmonui/data/json';
```

Also exported from `@salmonui/data`.

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

## Reference

Kind: interface

```ts
interface WireQuery {
    readonly where?: WirePredicate;
    readonly sort?: readonly {
        readonly field: string;
        readonly dir: 'asc' | 'desc';
    }[];
    readonly search?: {
        readonly text: string;
        readonly fields: readonly string[] | '*';
        readonly op: string;
        readonly ignoreCase?: boolean;
        readonly ignoreAccent?: boolean;
    };
    readonly page?: WirePage;
    readonly group?: readonly {
        readonly field: string;
        readonly format?: string;
    }[];
    readonly aggregates?: readonly {
        readonly field: string;
        readonly type: string;
    }[];
    readonly select?: readonly string[];
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `where` | `readonly where?: WirePredicate;` | optional |  |
| `sort` | `readonly sort?: readonly {     readonly field: string;     readonly dir: 'asc' \| 'desc'; }[];` | optional |  |
| `search` | `readonly search?: {     readonly text: string;     readonly fields: readonly string[] \| '*';     readonly op: string;     readonly ignoreCase?: boolean;     readonly ignoreAccent?: boolean; };` | optional |  |
| `page` | `readonly page?: WirePage;` | optional |  |
| `group` | `readonly group?: readonly {     readonly field: string;     readonly format?: string; }[];` | optional |  |
| `aggregates` | `readonly aggregates?: readonly {     readonly field: string;     readonly type: string; }[];` | optional |  |
| `select` | `readonly select?: readonly string[];` | optional |  |
