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