# DataSourceResult (@salmonui/core/data)

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

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

```ts
import type { DataSourceResult } 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 DataSourceResult<Row> {
    readonly version: number;
    readonly rows: readonly Row[];
    readonly totalRowCount?: number;
    readonly performed?: readonly PerformedStage[];
    readonly aggregates?: AggregateValues;
    readonly pageInfo?: {
        readonly hasNextPage?: boolean;
        readonly hasPreviousPage?: boolean;
        readonly endCursor?: string | null;
    };
    readonly rowOffset?: number;
    readonly facet?: DataSourceFacetResult;
}
```

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `version` | `readonly version: number;` |  |  |
| `rows` | `readonly rows: readonly Row[];` |  | Plain rows; group envelopes for lazy group loads. |
| `totalRowCount` | `readonly totalRowCount?: number;` | optional |  |
| `performed` | `readonly performed?: readonly PerformedStage[];` | optional |  |
| `aggregates` | `readonly aggregates?: AggregateValues;` | optional | Totals over every matching row (remote aggregates). |
| `pageInfo` | `readonly pageInfo?: {     readonly hasNextPage?: boolean;     readonly hasPreviousPage?: boolean;     readonly endCursor?: string \| null; };` | optional |  |
| `rowOffset` | `readonly rowOffset?: number;` | optional | Row index of `rows[0]` for a `range` read (block sources after evicting leading blocks); default `range.start`, or 0 for `capabilities.infinite` sources. |
| `facet` | `readonly facet?: DataSourceFacetResult;` | optional | Answer to a `facet` request. |
