prorm API Reference
    Preparing search index...

    Class RowLevelSecurity

    Row-level security class with static methods. Provides the same functionality as the RLS object but as class methods.

    RowLevelSecurity.init(); RowLevelSecurity.apply(Document, ctx => ({ where: { tenantId: ctx.tenantId } })); RowLevelSecurity.remove(Document); RowLevelSecurity.getFilteredQuery(Document);

    Index
    • Parameters

      • Model: any

      Returns { where?: Record<string, any>; include?: any[]; attributes?: string[] }