Boolean parameter in request body is always true in NestJS api

Found a workaround for the issue with class-transformer You can use this: @IsBoolean() @Transform(({ value} ) => value === ‘true’) public laserMode: boolean; This will transform the string into a boolean value, based on if it is ‘true’ or any other string. A simple workaround, but every string different than true, results in false.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)