Skip to main content

WhereCallback

还没翻译译自英文(tanstack.com)本页 13 段都还没译

type WhereCallback<TContext> = (refs) => any;

Defined in: packages/db/src/query/builder/types.ts:218

WhereCallback - Type for where/having clause callback functions

These callbacks receive a refs object containing RefProxy instances for all available tables. The callback should return a boolean expression that will be used to filter query results.

Example: (refs) => eq(refs.users.age, 25)

Type Parameters

TContext

TContext extends Context

Parameters

refs

RefsForContext<TContext>

Returns

any