import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { ArticleUpdateWithoutCommentsInput } from './article-update-without-comments.input'; import { Type } from 'class-transformer'; import { ArticleCreateWithoutCommentsInput } from './article-create-without-comments.input'; @InputType() export class ArticleUpsertWithoutCommentsInput { @Field(() => ArticleUpdateWithoutCommentsInput, {nullable:false}) @Type(() => ArticleUpdateWithoutCommentsInput) update!: ArticleUpdateWithoutCommentsInput; @Field(() => ArticleCreateWithoutCommentsInput, {nullable:false}) @Type(() => ArticleCreateWithoutCommentsInput) create!: ArticleCreateWithoutCommentsInput; }