Skip to content

r.systemScope(...)

r.systemScope() — switches the feature’s TenantDb to system mode: no tenant filter on reads/updates/deletes, and INSERT treats tenantId as a default the handler may override (tenant mode forces it). For features whose aggregates span tenants, e.g. user management or platform operations. Marker call — no arguments.


From packages/framework/src/engine/feature-ast/patterns.ts -> SystemScopePattern