basalt / prisma/src / RawQueryInTenantContextError
Class: RawQueryInTenantContextError
Defined in: prisma/src/extension.ts:19
Raw SQL/command methods ($queryRaw, $executeRaw, …) bypass the model-level tenant scoping entirely, so running one INSIDE a tenant context would read or mutate every tenant's rows. This is thrown to fail closed on that path.
Extends
Constructors
Constructor
> new RawQueryInTenantContextError(method): RawQueryInTenantContextError
Defined in: prisma/src/extension.ts:20
Parameters
method
string
Returns
RawQueryInTenantContextError
Overrides
Properties
code
> readonly code: string
Defined in: core/src/errors.ts:25
Inherited from
details?
> readonly optional details?: Record<string, unknown>
Defined in: core/src/errors.ts:28
Structured payload passed to the constructor, exactly as given (never sanitised here).