import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { ArticleUncheckedCreateNestedManyWithoutTagsInput } from '../article/article-unchecked-create-nested-many-without-tags.input'; import { Type } from 'class-transformer'; @InputType() export class TagUncheckedCreateInput { @Field(() => String, {nullable:true}) id?: string; @Field(() => String, {nullable:false}) name!: string; @Field(() => ArticleUncheckedCreateNestedManyWithoutTagsInput, {nullable:true}) @Type(() => ArticleUncheckedCreateNestedManyWithoutTagsInput) articles?: ArticleUncheckedCreateNestedManyWithoutTagsInput; }