import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; @InputType() export class CommentCreateManyArticleInput { @Field(() => String, {nullable:true}) id?: string; @Field(() => Date, {nullable:true}) createdAt?: Date | string; @Field(() => Date, {nullable:true}) updatedAt?: Date | string; @Field(() => String, {nullable:false}) body!: string; @Field(() => String, {nullable:false}) authorId!: string; }