prisma-graphql-type-decimal icon indicating copy to clipboard operation
prisma-graphql-type-decimal copied to clipboard

Getting empty Decimal property

Open uncleDimasik opened this issue 1 year ago • 0 comments

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

uncleDimasik avatar Apr 24 '23 00:04 uncleDimasik