API reference: @salmonui/query-builder/sql
QueryRuleinterface
import type { QueryRule } from '@salmonui/query-builder/sql';Also exported from @salmonui/query-builder, @salmonui/query-builder/mongo.
interface QueryRule {
readonly id?: string;
readonly field: string;
readonly operator: string;
readonly value?: Json;
readonly matchCase?: boolean;
readonly ignoreAccents?: boolean;
readonly locked?: boolean;
}
One condition: field operator value.
| Name | Signature | Description |
|---|---|---|
idoptional | readonly id?: string; | Stable node id; assigned by QueryBuilder when missing. |
field | readonly field: string; | Field path ( |
operator | readonly operator: string; | A Data Grid filter operator name ( |
valueoptional | readonly value?: Json; |
|
matchCaseoptional | readonly matchCase?: boolean; | |
ignoreAccentsoptional | readonly ignoreAccents?: boolean; | |
lockedoptional | readonly locked?: boolean; | A locked rule cannot be edited, moved or deleted from the UI. |