SubscribeChangesOptions

Interface: SubscribeChangesOptions<T>

Defined in: packages/db/src/types.ts:573

Options for subscribing to collection changes

Type Parameters

T extends object = Record<string, unknown>

Properties

includeInitialState?

ts
optional includeInitialState: boolean;
optional includeInitialState: boolean;

Defined in: packages/db/src/types.ts:577

Whether to include the current state as initial changes


where()?

ts
optional where: (row) => any;
optional where: (row) => any;

Defined in: packages/db/src/types.ts:579

Filter changes using a where expression

Parameters

row

SingleRowRefProxy<T>

Returns

any


whereExpression?

ts
optional whereExpression: BasicExpression<boolean>;
optional whereExpression: BasicExpression<boolean>;

Defined in: packages/db/src/types.ts:581

Pre-compiled expression for filtering changes