View as Markdown

API reference: @salmonui/data/json

WireQueryOptionsinterface

import type { WireQueryOptions } from '@salmonui/data/json';

Also exported from @salmonui/data.

interface WireQueryOptions {
    readonly fieldOf?: (columnId: ColumnId) => string;
    readonly page?: WirePage;
    readonly select?: readonly string[];
}
WireQueryOptions members (3)
NameSignatureDescription
fieldOfoptionalreadonly fieldOf?: (columnId: ColumnId) => string;

Maps a columnId to the server field name. Default identity.

pageoptionalreadonly page?: WirePage;
selectoptionalreadonly select?: readonly string[];