今天,我试图弄清楚如何在应用程序的后端(NestJS)验证注册表单。我只是想知道是否存在一种验证password和passwordConfirm匹配的方法,使用class-validator包构建自定义验证器或利用提供的验证器。我想的是一个类验证器,而不是字段验证器。// Maybe validator here @<em
我正在使用nestjs/graphql,并且我为graphql突变做了一个dto,其中我使用了类验证器选项,如@IsString()和@IsBoolean()。classTransformer.plainToClass is not a function
at ValidationPipe.transform (/home/inust33/ubereats-backend/node_modules/@nestjs/common/pipe