本页还没有译文
本页 14 段还没译成Español,下面显示的是英文原文。JoinOnCallback
还没翻译译自英文(tanstack.com)本页 14 段都还没译
type JoinOnCallback<TContext> = (refs) => any;Defined in: packages/db/src/query/builder/types.ts:641
JoinOnCallback - Type for join condition callback functions
These callbacks receive refs for all available tables (including the newly joined table) and should return a boolean expression defining the join condition.
Important: The newly joined table is NOT marked as optional in this callback, even for left/right/full joins, because optionality is applied AFTER the join condition is evaluated.
Example: (refs) => eq(refs.users.id, refs.orders.userId)
Type Parameters
TContext
TContext extends Context
Parameters
refs
RefsForContext<TContext>
Returns
any
AI 翻译查看英文原文