Skip to content

buildGrantScopeAccessShapePredicate

buildGrantScopeAccessShapePredicate(scopeColumn, claims, options): Predicate | null

Defined in: packages/contracts/src/supabase-rls.ts:902

The grant-scope predicate, bypass included — the native-path counterpart to the grant-scope select policy, from the same declaration. A caller holding a bypass grant gets null (no filter, every row); anyone else gets buildGrantScopeShapePredicate over their resolved ids.

AnyColumn

{[key: string]: unknown; app_metadata?: {[key: string]: unknown; roles?: string[]; }; sub?: string; } | null

GrantScopeAccessOptions

Predicate | null