MCPcopy Index your code
hub / github.com/TanStack/db / leftJoin

Method leftJoin

packages/db/src/query/builder/index.ts:332–341  ·  view source on GitHub ↗

* Perform a LEFT JOIN with another table or subquery * * @param source - An object with a single key-value pair where the key is the table alias and the value is a Collection or subquery * @param onCallback - A function that receives table references and returns the join condition * @ret

(
    source: TSource,
    onCallback: JoinOnCallback<
      MergeContextForJoinCallback<TContext, SchemaFromSource<TSource>>
    >,
  )

Source from the content-addressed store, hash-verified

330 * ```
331 */
332 leftJoin<TSource extends Source>(
333 source: TSource,
334 onCallback: JoinOnCallback<
335 MergeContextForJoinCallback<TContext, SchemaFromSource<TSource>>
336 >,
337 ): QueryBuilder<
338 MergeContextWithJoinType<TContext, SchemaFromSource<TSource>, `left`>
339 > {
340 return this.join(source, onCallback, `left`)
341 }
342
343 /**
344 * Perform a RIGHT JOIN with another table or subquery

Callers 14

createJoinsTestSuiteFunction · 0.80
testJoinTypeFunction · 0.80
createJoinTestsFunction · 0.80
scheduler.test.tsFile · 0.80
union-all.test.tsFile · 0.80
createGroupByTestsFunction · 0.80

Calls 1

joinMethod · 0.95

Tested by 3

testJoinTypeFunction · 0.64
createJoinTestsFunction · 0.64
createGroupByTestsFunction · 0.64