MCPcopy Create free account
hub / github.com/TanStack/db / getAllSources

Function getAllSources

packages/db/src/query/compiler/index.ts:1540–1545  ·  view source on GitHub ↗
(query: QueryIR)

Source from the content-addressed store, hash-verified

1538}
1539
1540function getAllSources(query: QueryIR): Array<CollectionRef | QueryRef> {
1541 return [
1542 ...getFromSources(query.from),
1543 ...(query.join?.map((join) => join.from) ?? []),
1544 ]
1545}
1546
1547function getFirstFromAlias(from: QueryIR[`from`]): string {
1548 return getFromSources(from)[0]?.alias ?? ``

Callers 1

processUnionAllFunction · 0.85

Calls 2

getFromSourcesFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected