import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { UserCreateWithoutCommentsInput } from './user-create-without-comments.input'; import { Type } from 'class-transformer'; import { UserCreateOrConnectWithoutCommentsInput } from './user-create-or-connect-without-comments.input'; import { UserUpsertWithoutCommentsInput } from './user-upsert-without-comments.input'; import { UserWhereUniqueInput } from './user-where-unique.input'; import { UserUpdateWithoutCommentsInput } from './user-update-without-comments.input'; @InputType() export class UserUpdateOneRequiredWithoutCommentsNestedInput { @Field(() => UserCreateWithoutCommentsInput, {nullable:true}) @Type(() => UserCreateWithoutCommentsInput) create?: UserCreateWithoutCommentsInput; @Field(() => UserCreateOrConnectWithoutCommentsInput, {nullable:true}) @Type(() => UserCreateOrConnectWithoutCommentsInput) connectOrCreate?: UserCreateOrConnectWithoutCommentsInput; @Field(() => UserUpsertWithoutCommentsInput, {nullable:true}) @Type(() => UserUpsertWithoutCommentsInput) upsert?: UserUpsertWithoutCommentsInput; @Field(() => UserWhereUniqueInput, {nullable:true}) @Type(() => UserWhereUniqueInput) connect?: UserWhereUniqueInput; @Field(() => UserUpdateWithoutCommentsInput, {nullable:true}) @Type(() => UserUpdateWithoutCommentsInput) update?: UserUpdateWithoutCommentsInput; }