View as Markdown

API reference: @salmonui/data/json

WireQueryinterface

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

Also exported from @salmonui/data.

interface WireQuery {
    readonly where?: WirePredicate;
    readonly sort?: readonly {
        readonly field: string;
        readonly dir: 'asc' | 'desc';
    }[];
    readonly search?: {
        readonly text: string;
        readonly fields: readonly string[] | '*';
        readonly op: string;
        readonly ignoreCase?: boolean;
        readonly ignoreAccent?: boolean;
    };
    readonly page?: WirePage;
    readonly group?: readonly {
        readonly field: string;
        readonly format?: string;
    }[];
    readonly aggregates?: readonly {
        readonly field: string;
        readonly type: string;
    }[];
    readonly select?: readonly string[];
}
WireQuery members (7)
NameSignatureDescription
whereoptionalreadonly where?: WirePredicate;
sortoptionalreadonly sort?: readonly { readonly field: string; readonly dir: 'asc' | 'desc'; }[];
searchoptionalreadonly search?: { readonly text: string; readonly fields: readonly string[] | '*'; readonly op: string; readonly ignoreCase?: boolean; readonly ignoreAccent?: boolean; };
pageoptionalreadonly page?: WirePage;
groupoptionalreadonly group?: readonly { readonly field: string; readonly format?: string; }[];
aggregatesoptionalreadonly aggregates?: readonly { readonly field: string; readonly type: string; }[];
selectoptionalreadonly select?: readonly string[];