(ref: IntrospectionTypeRef)
| 366 | ); |
| 367 | |
| 368 | const unwrapTypeName = (ref: IntrospectionTypeRef): string => { |
| 369 | if (ref.name) return ref.name; |
| 370 | if (ref.ofType) return unwrapTypeName(ref.ofType); |
| 371 | return "Unknown"; |
| 372 | }; |
| 373 | |
| 374 | // Composite (output) types require a sub-selection; leaves (scalars/enums) must |
| 375 | // not have one. Anything we cannot resolve in the type map is treated as a leaf |
no outgoing calls
no test coverage detected