# SyncOptions.treatAsView property · @imqueue/pg-sequelize

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

> Warning: This API is now obsolete.
> 
> Decorate the model instead; passing this is ignored.
> 

Has no effect when passed to a sync call.

**Signature:**

```typescript
treatAsView?: boolean;
```

## Remarks

Whether a model is a view is decided by the model, not by the caller: the `View` and `DynamicView` decorators set this flag in the model's own options, and that is the only place it is ever read from. It is declared here because a model's options and a sync call's options are the same type, not because passing it does anything.

