prisma-graphql-type-decimal
prisma-graphql-type-decimal copied to clipboard
Getting empty Decimal property
It's not an issue!!! Just a tip. If you use this package with "prisma-nestjs-graphql" codegen and "class-validator", add the "transform: true" option to the validation configuration.
my nestjs example
app.useGlobalPipes(
new ValidationPipe({
enableDebugMessages: isDevelopment,
skipUndefinedProperties: true,
transform: true, // !!! important
}),
);
P.S. I lost 5 hours on this