Open knorke132 opened 4 months ago
Some clients (like apollo) let you set supertype / subtype relations
const possibleTypes: PossibleTypesMap = { animal: ['Frog', 'Beaver'], }
Usable values are already generated but not exported yet
const Animal_possibleTypes: string[] = ['Frog','Beaver'] export const isAnimal = (obj?: { __typename?: any } | null): obj is Animal => { if (!obj?.__typename) throw new Error('__typename is missing in "isAnimal"') return Animal_possibleTypes.includes(obj.__typename) }
Would be great to have them exported
GEN-27 Export possibleTypes
Some clients (like apollo) let you set supertype / subtype relations
Usable values are already generated but not exported yet
Would be great to have them exported