prorm API Reference
    Preparing search index...

    Function apply

    • Apply row-level security to a model. Registers a dynamic scope selector that is applied to ALL queries on that model.

      Parameters

      • Model: any

        The model to protect

      • selector: ScopeSelector

        A function that returns query modifiers based on the current context

      Returns void