Closed dundich closed 3 years ago
schema.prisma
model User { id String @id @default(uuid()) role UserRole? @default(USER) } enum UserRole { SYSADMIN ADMIN USER }
after pal g for mode sdl generated ... resolversTypes.ts with incorrect type Client.Prisma.UserRole
export interface User { [key: string]: Resolver<any, any, any> id?: Resolver<Client.User, {}, string> role?: Resolver<Client.User, {}, Client.Prisma.UserRole | null> ===> !!! Namespace '".../node_modules/.prisma/client/index".Prisma' has no exported member 'UserRole'
But after fixed type...
role?: Resolver<Client.User, {}, Client.UserRole | null> - is OK
PS. typo Client.Prisma.UserRole -> Client.UserRole
@dundich thank your for report the issue
schema.prisma
after pal g for mode sdl generated ... resolversTypes.ts with incorrect type Client.Prisma.UserRole
But after fixed type...
PS. typo Client.Prisma.UserRole -> Client.UserRole