Relative Content

Tag Archive for node.jsnestjsclass-validator

How to manage the Object in class-validator in nestjs?

I have a object it type is product:{[key:string]:[{min:number,max:number,discount:number}]}
that product if {} return error or min or max or discount not exist return error Or the type of one is not number return error in class-validator nestjs