Click in order · NestJS course · Module 2: Routing and Request Lifecycle
Introduction: DTO Definition with Validation
Arrange the elements of a DTO field definition with validation in the correct order:
Items to click
- name: string;
- }
- export class CreateTributeDto {
- @IsString()
Show the answer
Correct order:
- export class CreateTributeDto {
- @IsString()
- name: string;
- }