# DataSourceRequest (@salmonui/data)

> The DataSourceRequest interface of @salmonui/data.

Canonical: https://salmonui.dev/docs/reference/data/DataSourceRequest

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

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

## Reference

Kind: interface

```ts
interface DataSourceRequest {
    readonly version: number;
    readonly query: DataQuery;
    readonly range?: {
        readonly start: number;
        readonly end: number;
    };
    readonly cursor?: string | null;
    readonly groupPath?: readonly GroupPathSegment[];
    readonly parentRowId?: RowId | null;
    readonly facet?: {
        readonly columnId: ColumnId;
        readonly search?: string;
        readonly limit?: number;
    };
    readonly signal: AbortSignalLike;
}
```

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `version` | `readonly version: number;` |  |  |
| `query` | `readonly query: DataQuery;` |  |  |
| `range` | `readonly range?: {     readonly start: number;     readonly end: number; };` | optional |  |
| `cursor` | `readonly cursor?: string \| null;` | optional |  |
| `groupPath` | `readonly groupPath?: readonly GroupPathSegment[];` | optional | Lazy group load. `[]` loads the root group level; a non-empty path loads that group's children. |
| `parentRowId` | `readonly parentRowId?: RowId \| null;` | optional | Tree read: `null` reads the root level, a row id reads that row's children (wire `parent`). |
| `facet` | `readonly facet?: {     readonly columnId: ColumnId;     readonly search?: string;     readonly limit?: number; };` | optional | Distinct values of a column: `search` narrows by label, `limit` caps the entries (`complete: false` when more exist). |
| `signal` | `readonly signal: AbortSignalLike;` |  |  |
