Documentation / @zerotal/orm / index / NPlusOneOptions
Interface: NPlusOneOptions
Defined in: packages/orm/src/db/NPlusOneDetector.ts:66
Properties
threshold?
optionalthreshold?:number
Defined in: packages/orm/src/db/NPlusOneDetector.ts:68
How many identical query shapes in one request triggers a violation. Default: 5.
mode?
optionalmode?:"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)