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

Method innerJoin

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

* Perform an INNER 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 * @r

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

Source from the content-addressed store, hash-verified

382 * ```
383 */
384 innerJoin<TSource extends Source>(
385 source: TSource,
386 onCallback: JoinOnCallback<
387 MergeContextForJoinCallback<TContext, SchemaFromSource<TSource>>
388 >,
389 ): QueryBuilder<
390 MergeContextWithJoinType<TContext, SchemaFromSource<TSource>, `inner`>
391 > {
392 return this.join(source, onCallback, `inner`)
393 }
394
395 /**
396 * Perform a FULL JOIN with another table or subquery

Callers 5

testJoinTypeFunction · 0.80
createJoinTestsFunction · 0.80
join.test-d.tsFile · 0.80
join.test.tsFile · 0.80

Calls 1

joinMethod · 0.95

Tested by 2

testJoinTypeFunction · 0.64
createJoinTestsFunction · 0.64