Tengo un dto llamado updateUserDTO y la clase se ve así
@IsString() full_name: string; @IsNumber() mobile: string; @IsEmail() email: string; @IsOptional() location: string; @IsOptional() landmark: string; @IsOptional() city: string;¿Cómo puedo crear un DTO anidado, de modo que cuando mi respuesta publique en mi controlador se vea así?
{ "full_name": "xyz", "mobile": 1231341451, "email": "xyz@abc.com", "address": { "location": "new avenue", "landmark": "Opp to St louis", "city": "Buffalo" } }