Files
twenty/server/src/api/@generated/comment-thread/comment-thread-update-one-required-without-comments-nested.input.ts
T
Charles Bochet a3a3c1924f Add comments to Prisma Schema and GraphQL server (#162)
* Lowercase all relations in prisma/graphql schema

* Add Comments data model and graphql schema

* Make comments availalble on the api through resolvers and guard them

* Update front graphql schema

* Fix PR
2023-05-31 15:41:53 +02:00

34 lines
1.6 KiB
TypeScript

import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { CommentThreadCreateWithoutCommentsInput } from './comment-thread-create-without-comments.input';
import { Type } from 'class-transformer';
import { CommentThreadCreateOrConnectWithoutCommentsInput } from './comment-thread-create-or-connect-without-comments.input';
import { CommentThreadUpsertWithoutCommentsInput } from './comment-thread-upsert-without-comments.input';
import { CommentThreadWhereUniqueInput } from './comment-thread-where-unique.input';
import { CommentThreadUpdateWithoutCommentsInput } from './comment-thread-update-without-comments.input';
@InputType()
export class CommentThreadUpdateOneRequiredWithoutCommentsNestedInput {
@Field(() => CommentThreadCreateWithoutCommentsInput, { nullable: true })
@Type(() => CommentThreadCreateWithoutCommentsInput)
create?: CommentThreadCreateWithoutCommentsInput;
@Field(() => CommentThreadCreateOrConnectWithoutCommentsInput, {
nullable: true,
})
@Type(() => CommentThreadCreateOrConnectWithoutCommentsInput)
connectOrCreate?: CommentThreadCreateOrConnectWithoutCommentsInput;
@Field(() => CommentThreadUpsertWithoutCommentsInput, { nullable: true })
@Type(() => CommentThreadUpsertWithoutCommentsInput)
upsert?: CommentThreadUpsertWithoutCommentsInput;
@Field(() => CommentThreadWhereUniqueInput, { nullable: true })
@Type(() => CommentThreadWhereUniqueInput)
connect?: CommentThreadWhereUniqueInput;
@Field(() => CommentThreadUpdateWithoutCommentsInput, { nullable: true })
@Type(() => CommentThreadUpdateWithoutCommentsInput)
update?: CommentThreadUpdateWithoutCommentsInput;
}