(select: any)
| 62 | } |
| 63 | |
| 64 | function extractFromSelect(select: any) { |
| 65 | for (const [key, value] of Object.entries(select)) { |
| 66 | if (typeof key === `string` && key.startsWith(`__SPREAD_SENTINEL__`)) { |
| 67 | continue |
| 68 | } |
| 69 | if (value instanceof IncludesSubquery) { |
| 70 | extractFromQuery(value.query) |
| 71 | } else if (value instanceof ConditionalSelect) { |
| 72 | extractFromConditionalSelect(value) |
| 73 | } else if (isNestedSelectObject(value)) { |
| 74 | extractFromSelect(value) |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | function extractFromConditionalSelect(conditional: ConditionalSelect) { |
| 80 | for (const branch of conditional.branches) { |
no test coverage detected