API reference: @salmonui/data/json
WireReadRequestinterface
import type { WireReadRequest } from '@salmonui/data/json';Also exported from @salmonui/data.
interface WireReadRequest {
readonly v: 1;
readonly id: string;
readonly query: WireQuery;
readonly groupPath?: readonly {
readonly field: string;
readonly key: Json;
}[];
readonly parent?: Json;
readonly facet?: {
readonly field: string;
readonly search?: string;
readonly limit?: number;
};
readonly count?: boolean;
}
| Name | Signature | Description |
|---|---|---|
v | readonly v: 1; | |
id | readonly id: string; | |
query | readonly query: WireQuery; | |
groupPathoptional | readonly groupPath?: readonly {
readonly field: string;
readonly key: Json;
}[]; | Lazy group load: |
parentoptional | readonly parent?: Json; | Tree read: key of the parent row; |
facetoptional | readonly facet?: {
readonly field: string;
readonly search?: string;
readonly limit?: number;
}; | |
countoptional | readonly count?: boolean; | Default true; false skips the total count. |