Skip to main content
zerotal

Documentation


Documentation / @zerotal/orm / index / NPlusOneOptions

Interface: NPlusOneOptions

Defined in: packages/orm/src/db/NPlusOneDetector.ts:66

Properties

threshold?

optional threshold?: number

Defined in: packages/orm/src/db/NPlusOneDetector.ts:68

How many identical query shapes in one request triggers a violation. Default: 5.


mode?

optional mode?: "warn" | "throw"

Defined in: packages/orm/src/db/NPlusOneDetector.ts:73

'warn' → console.warn (default — non-breaking, still visible) 'throw' → throws NPlusOneError (good for CI / strict mode)