Skip to content

buildRowFilterShape

buildRowFilterShape(filter, claims, params?): RowFilterShape | null

Defined in: packages/contracts/src/config.ts:530

The shape filter the proxy sends to Electric: the where plus its positional params ($1, $2, …). A customWhere returning a Drizzle SQL fragment is serialized here, so request-derived values become bound params — never hand-escaped literals; a string customWhere is the raw escape hatch (no params). Returns null when there is no filter (all rows visible).

RowFilterSpec

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

Record<string, unknown>

RowFilterShape | null