(from: From)
| 901 | } |
| 902 | |
| 903 | function getFromSources(from: From): Array<CollectionRefClass | QueryRefClass> { |
| 904 | if (from.type === `unionFrom`) { |
| 905 | return from.sources |
| 906 | } |
| 907 | if (from.type === `unionAll`) { |
| 908 | return [] |
| 909 | } |
| 910 | return [from] |
| 911 | } |
| 912 | |
| 913 | function getFirstFromAlias(query: QueryIR): string | undefined { |
| 914 | return getFromSources(query.from)[0]?.alias |
no outgoing calls
no test coverage detected