* 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
19 lines
843 B
TypeScript
19 lines
843 B
TypeScript
import { Field } from '@nestjs/graphql';
|
|
import { InputType } from '@nestjs/graphql';
|
|
import { CommentThreadTargetWhereUniqueInput } from './comment-thread-target-where-unique.input';
|
|
import { Type } from 'class-transformer';
|
|
import { CommentThreadTargetCreateWithoutCommentThreadInput } from './comment-thread-target-create-without-comment-thread.input';
|
|
|
|
@InputType()
|
|
export class CommentThreadTargetCreateOrConnectWithoutCommentThreadInput {
|
|
@Field(() => CommentThreadTargetWhereUniqueInput, { nullable: false })
|
|
@Type(() => CommentThreadTargetWhereUniqueInput)
|
|
where!: CommentThreadTargetWhereUniqueInput;
|
|
|
|
@Field(() => CommentThreadTargetCreateWithoutCommentThreadInput, {
|
|
nullable: false,
|
|
})
|
|
@Type(() => CommentThreadTargetCreateWithoutCommentThreadInput)
|
|
create!: CommentThreadTargetCreateWithoutCommentThreadInput;
|
|
}
|