Data-only predicate trees use M null logic; only logical true selects a row.
Variants 5
{ readonly kind: "compare"; readonly column: string; readonly op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte"; readonly value: string | number | boolean | null;}{ readonly kind: "isNull"; readonly column: string }{ readonly kind: "contains"; readonly column: string; readonly text: string;}{ readonly kind: "and" | "or";}Declaration
View full TypeScript declaration
export type QueryPredicate = | { readonly kind: "compare"; readonly column: string; readonly op: "eq" | "neq" | "lt" | "lte" | "gt" | "gte"; readonly value: string | number | boolean | null; } | { readonly kind: "isNull"; readonly column: string; } | { readonly kind: "contains"; readonly column: string; readonly text: string; } | { readonly kind: "and" | "or"; readonly predicates: readonly QueryPredicate[]; } | { readonly kind: "not"; readonly predicate: QueryPredicate; };