View as Markdown

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;
}
WireReadRequest members (7)
NameSignatureDescription
vreadonly v: 1;
idreadonly id: string;
queryreadonly query: WireQuery;
groupPathoptionalreadonly groupPath?: readonly { readonly field: string; readonly key: Json; }[];

Lazy group load: [] = root level, otherwise the children of that group.

parentoptionalreadonly parent?: Json;

Tree read: key of the parent row; null reads the root level.

facetoptionalreadonly facet?: { readonly field: string; readonly search?: string; readonly limit?: number; };
countoptionalreadonly count?: boolean;

Default true; false skips the total count.