MCPcopy Create free account
hub / github.com/glideapps/quicktype / makeTypeNames

Function makeTypeNames

src/GraphQL.ts:61–71  ·  view source on GitHub ↗
(
    name: string,
    fieldName: string | null,
    containingTypeName: string | null
)

Source from the content-addressed store, hash-verified

59}
60
61function makeTypeNames(
62 name: string,
63 fieldName: string | null,
64 containingTypeName: string | null
65): NamesWithAlternatives {
66 const alternatives: string[] = [];
67 if (fieldName) alternatives.push(fieldName);
68 if (containingTypeName) alternatives.push(`${containingTypeName}_${name}`);
69 if (fieldName && containingTypeName) alternatives.push(`${containingTypeName}_${fieldName}`);
70 return { names: OrderedSet([name]), alternatives: OrderedSet(alternatives) };
71}
72
73function makeNullable(
74 builder: TypeBuilder,

Callers 2

makeNullableFunction · 0.85
GQLQueryClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…