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

Function getFirstFromAlias

packages/db/src/query/compiler/joins.ts:573–583  ·  view source on GitHub ↗
(query: QueryIR)

Source from the content-addressed store, hash-verified

571}
572
573function getFirstFromAlias(query: QueryIR): string | undefined {
574 if (query.from.type === `unionFrom`) {
575 return query.from.sources[0]?.alias
576 }
577
578 if (query.from.type === `unionAll`) {
579 return undefined
580 }
581
582 return query.from.alias
583}
584
585/**
586 * Processes the results of a join operation

Callers 1

processJoinSourceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected