MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / unwrapTypeName

Function unwrapTypeName

packages/plugins/graphql/src/sdk/plugin.ts:368–372  ·  view source on GitHub ↗
(ref: IntrospectionTypeRef)

Source from the content-addressed store, hash-verified

366 );
367
368const 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

Callers 2

isCompositeTypeFunction · 0.70
buildDefaultSelectionSetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected