twitch-clone/backend/src/module/stream/inputs/change-stream-info.input.ts
2025-07-09 06:17:03 +03:00

16 lines
303 B
TypeScript

import { Field, InputType } from '@nestjs/graphql'
import { IsNotEmpty, IsString } from 'class-validator'
@InputType()
export class ChangeStreamInfoInput {
@Field(() => String)
@IsString()
@IsNotEmpty()
title: string
@Field(() => String)
@IsString()
@IsNotEmpty()
categoryId: string
}