( ref: IntrospectionTypeRef, types: ReadonlyMap<string, IntrospectionType>, )
| 375 | // not have one. Anything we cannot resolve in the type map is treated as a leaf |
| 376 | // (custom scalars live in the map as SCALAR; truly-unknown types are rare). |
| 377 | const isCompositeType = ( |
| 378 | ref: IntrospectionTypeRef, |
| 379 | types: ReadonlyMap<string, IntrospectionType>, |
| 380 | ): boolean => { |
| 381 | const kind = types.get(unwrapTypeName(ref))?.kind; |
| 382 | return kind === "OBJECT" || kind === "INTERFACE" || kind === "UNION"; |
| 383 | }; |
| 384 | |
| 385 | // A field whose argument is non-null without a default cannot be selected by the |
| 386 | // generator: it has no value to pass and emitting the field without the argument |
no test coverage detected