When updating Decimals, it is desirable to be available to send null, to erase the field.
This is not working because transformToDecimal is trying to transform null to decimal and it is returning an error.
As for example, on an update input, the following code is generated by prisma-nestjs-graphql:
When updating Decimals, it is desirable to be available to send null, to erase the field. This is not working because
transformToDecimal
is trying to transform null to decimal and it is returning an error.As for example, on an update input, the following code is generated by
prisma-nestjs-graphql
:But even if the field is set with nullable true,
transformToDecimal
throw an error.