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

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

Matches a value, or no value at all.

**Signature:**

```typescript
export function orNull(value: string | string[]): Partial<FindOptions>;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| value | string \| string\[\] | Value, or values, to accept alongside `null`. |


**Returns:**

Partial<FindOptions>

A where fragment for one column.

## Remarks

For the filter that means "these, and the rows where it is not set": the result is an `OR` over `null` and what you pass. Without it a `null` in a where clause compares rather than tests, and matches nothing.

