query.buildWhereFromArray() function
ORs an array of filter values into one condition.
Signature:
export function buildWhereFromArray(data: any[]): any;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
data |
any[] |
Values to combine. |
Returns:
any
A where fragment for one column.
Remarks
Plain values are gathered into a single IN, while values carrying their own operator prefix become separate conditions, and the two groups are then ORed — so ['a', 'b', '>=10'] becomes IN (a, b) OR >= 10 rather than three unrelated comparisons.