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).
Parameters
Section titled “Parameters”filter
Section titled “filter”claims
Section titled “claims”{[key: string]: unknown; app_metadata?: {[key: string]: unknown; roles?: string[]; }; sub?: string; } | null
params?
Section titled “params?”Record<string, unknown>
Returns
Section titled “Returns”RowFilterShape | null