# DataSourceRequest (@salmonui/core/data)

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

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

```ts
import type { DataSourceRequest } 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 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?: DataSourceFacetRequest;
    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. Absent for plain reads. |
| `parentRowId` | `readonly parentRowId?: RowId \| null;` | optional | Tree read (tree mode over a remote source, `createRemoteTree`): `null` reads the root level, a row id reads that row's children. Sources answer with `TreeRowEnvelope`-shaped items (`{ kind: 'tree', row, parentId, hasChildren, childCount?, depth?, children? }`). Absent for plain reads. |
| `facet` | `readonly facet?: DataSourceFacetRequest;` | optional | Facet read: distinct values of a column with counts over the rows passing search and every other column's filter, for remote checklist and Excel filters. Sources answer with `facet`. |
| `signal` | `readonly signal: AbortSignalLike;` |  |  |
