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

Our Partners
Electric
Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.