# query.buildWhereFromArray() function · @imqueue/pg-sequelize

Source: https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.query.buildwherefromarray/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-sequelize 4.2.0 — generated reference, not hand-written

ORs an array of filter values into one condition.

**Signature:**

```typescript
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.

