Closed DannySS123 closed 1 month ago
TS enums won't be compatible with Prisma enums. Therefore we should import them from@prisma/client since they are generated by prisma. These enum fields in the DTOs should also have a @IsEnum decorator so that they will be validated.
@prisma/client
@IsEnum
TS enums won't be compatible with Prisma enums. Therefore we should import them from
@prisma/client
since they are generated by prisma. These enum fields in the DTOs should also have a@IsEnum
decorator so that they will be validated.