# DataLayerOptions interface · @imqueue/pg-prisma

Source: https://imqueue.org/api/pg-prisma/latest/pg-prisma.datalayeroptions/
Published: 2026-08-28
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-prisma 2.0.0 — generated reference, not hand-written

Everything [dataLayer()](https://imqueue.org/api/pg-prisma/latest/pg-prisma.datalayer_1/) needs.

**Signature:**

```typescript
export interface DataLayerOptions extends DeriveOptions 
```
**Extends:** [DeriveOptions](https://imqueue.org/api/pg-prisma/latest/pg-prisma.deriveoptions/)

## Properties


| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [audit?](https://imqueue.org/api/pg-prisma/latest/pg-prisma.datalayeroptions.audit/) |  | [DataLayerAudit](https://imqueue.org/api/pg-prisma/latest/pg-prisma.datalayeraudit/) | _(Optional)_ Where to record writes. Omitted, nothing is recorded. |
| [getActorId](https://imqueue.org/api/pg-prisma/latest/pg-prisma.datalayeroptions.getactorid/) |  | () => string \| null | Resolves the id of the actor performing the current write. |
| [log?](https://imqueue.org/api/pg-prisma/latest/pg-prisma.datalayeroptions.log/) |  | [QueryLogOptions](https://imqueue.org/api/pg-prisma/latest/pg-prisma.querylogoptions/) | _(Optional)_ Statement logging. Omitted, nothing is logged. |
| [resolvers?](https://imqueue.org/api/pg-prisma/latest/pg-prisma.datalayeroptions.resolvers/) |  | Record<string, [AccessScopeResolver](https://imqueue.org/api/pg-prisma/latest/pg-prisma.accessscoperesolver/)> | _(Optional)_ One resolver per access level named in `scope`. |

