diff --git a/src/typegenPrinter.ts b/src/typegenPrinter.ts index 3d0957b9..0d187a82 100644 --- a/src/typegenPrinter.ts +++ b/src/typegenPrinter.ts @@ -419,7 +419,7 @@ export class TypegenPrinter { resolveBackingType(typeName: string): string | undefined { const rootTyping = this.schema.extensions.nexus.config.rootTypings[typeName] if (rootTyping) { - return typeof rootTyping === 'string' ? rootTyping : rootTyping.name + return typeof rootTyping === 'string' ? rootTyping : (rootTyping.alias || rootTyping.name) } return (this.typegenInfo.backingTypeMap as any)[typeName] }