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

Method rightJoin

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

* Perform a RIGHT 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 * @re

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

Source from the content-addressed store, hash-verified

356 * ```
357 */
358 rightJoin<TSource extends Source>(
359 source: TSource,
360 onCallback: JoinOnCallback<
361 MergeContextForJoinCallback<TContext, SchemaFromSource<TSource>>
362 >,
363 ): QueryBuilder<
364 MergeContextWithJoinType<TContext, SchemaFromSource<TSource>, `right`>
365 > {
366 return this.join(source, onCallback, `right`)
367 }
368
369 /**
370 * Perform an INNER JOIN with another table or subquery

Callers 6

testJoinTypeFunction · 0.80
union-all.test.tsFile · 0.80
join.test-d.tsFile · 0.80
join.test.tsFile · 0.80

Calls 1

joinMethod · 0.95

Tested by 1

testJoinTypeFunction · 0.64