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[];
}
| Name | Signature | Description |
|---|---|---|
whereoptional | readonly where?: WirePredicate; | |
sortoptional | readonly sort?: readonly {
readonly field: string;
readonly dir: 'asc' | 'desc';
}[]; | |
searchoptional | readonly search?: {
readonly text: string;
readonly fields: readonly string[] | '*';
readonly op: string;
readonly ignoreCase?: boolean;
readonly ignoreAccent?: boolean;
}; | |
pageoptional | readonly page?: WirePage; | |
groupoptional | readonly group?: readonly {
readonly field: string;
readonly format?: string;
}[]; | |
aggregatesoptional | readonly aggregates?: readonly {
readonly field: string;
readonly type: string;
}[]; | |
selectoptional | readonly select?: readonly string[]; |