# BaseModel.findOne() method · @imqueue/pg-sequelize

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

Finds the first instance matching the options.

**Signature:**

```typescript
static findOne<M>(options?: FindOptions): Promise<M | null>;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| options | [FindOptions](https://imqueue.org/api/pg-sequelize/latest/pg-sequelize.findoptions/) | _(Optional)_ Find options; `viewParams` applies to a dynamic view. |


**Returns:**

Promise<M \| null>

The instance, or `null` when no row matches.

## Remarks

Sequelize's own `findOne` with one addition: on a model declared as a view, the numeric columns of the result are cast back to numbers.

