📜  嵌套 dto nestjs - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:44.349000             🧑  作者: Mango

代码示例1
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

}