diff --git a/src/best-albums/dtos/update-best-album.dto.ts b/src/best-albums/dtos/update-best-album.dto.ts new file mode 100644 index 00000000..5d538700 --- /dev/null +++ b/src/best-albums/dtos/update-best-album.dto.ts @@ -0,0 +1,11 @@ +import { InputType, Field } from 'type-graphql' +import { IsNotEmpty, IsUUID } from 'class-validator' +import { CreateBestAlbumInput } from './create-best-album.dto' + +@InputType() +export class UpdateBestAlbumInput extends CreateBestAlbumInput { + @Field() + @IsUUID() + @IsNotEmpty() + public readonly id: string +}