Answers for "nested dto nestjs"

0

nested dto nestjs

class Info {
    readonly title:string
    readonly score:number
    readonly description:string
    readonly dateOfCreation:Date
}

export class SampleDto {
    @Type(() => Info)
    @ValidatedNested()
    readonly info: Info

    ...Follow same for the rest of schema

}
Posted by: Guest on January-04-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language