import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { TagUncheckedCreateNestedManyWithoutArticlesInput } from '../tag/tag-unchecked-create-nested-many-without-articles.input'; import { HideField } from '@nestjs/graphql'; import { Int } from '@nestjs/graphql'; import { CommentUncheckedCreateNestedManyWithoutArticleInput } from '../comment/comment-unchecked-create-nested-many-without-article.input'; @InputType() export class ArticleUncheckedCreateWithoutFavoritedByInput { @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; @Field(() => TagUncheckedCreateNestedManyWithoutArticlesInput, { nullable: true }) tags?: TagUncheckedCreateNestedManyWithoutArticlesInput; @HideField() createdAt?: Date | string; @Field(() => Date, { nullable: true }) updatedAt?: Date | string; @Field(() => Int, { nullable: true }) favoritesCount?: number; @Field(() => String, { nullable: false }) authorId!: string; @Field(() => CommentUncheckedCreateNestedManyWithoutArticleInput, { nullable: true }) comments?: CommentUncheckedCreateNestedManyWithoutArticleInput; @Field(() => Boolean, { nullable: true }) active?: boolean; }