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 { UserWhereUniqueInput } from './user-where-unique.input'; @InputType() export class UserCreateNestedOneWithoutCommentsInput { @Field(() => UserCreateWithoutCommentsInput, {nullable:true}) @Type(() => UserCreateWithoutCommentsInput) create?: UserCreateWithoutCommentsInput; @Field(() => UserCreateOrConnectWithoutCommentsInput, {nullable:true}) @Type(() => UserCreateOrConnectWithoutCommentsInput) connectOrCreate?: UserCreateOrConnectWithoutCommentsInput; @Field(() => UserWhereUniqueInput, {nullable:true}) @Type(() => UserWhereUniqueInput) connect?: UserWhereUniqueInput; }