import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { HideField } from '@nestjs/graphql'; import { Int } from '@nestjs/graphql'; @InputType() export class ArticleCreateManyInput { @Field(() => String, { nullable: true }) id?: string; @Field(() => String, { nullable: false }) slug!: string; @Field(() => String, { nullable: false }) title!: string; @Field(() => String, { nullable: false }) description!: string; @Field(() => String, { nullable: false }) body!: string; @HideField() createdAt?: Date | string; @Field(() => Date, { nullable: true }) updatedAt?: Date | string; @Field(() => Int, { nullable: true }) favoritesCount?: number; @Field(() => String, { nullable: false }) authorId!: string; @Field(() => Boolean, { nullable: true }) active?: boolean; }