chore: refacto NestJS in modules (#308)
* chore: wip refacto in modules * fix: rollback port * fix: jwt guard in wrong folder * chore: rename folder exception-filter in filters * fix: tests are running * fix: excessive stack depth comparing types * fix: auth issue * chore: move createUser in UserService * fix: test * fix: guards * fix: jwt guard don't handle falsy user
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { CommentCountAggregate } from './comment-count-aggregate.output';
|
||||
import { CommentMinAggregate } from './comment-min-aggregate.output';
|
||||
import { CommentMaxAggregate } from './comment-max-aggregate.output';
|
||||
|
||||
@ObjectType()
|
||||
export class AggregateComment {
|
||||
@Field(() => CommentCountAggregate, { nullable: true })
|
||||
_count?: CommentCountAggregate;
|
||||
|
||||
@Field(() => CommentMinAggregate, { nullable: true })
|
||||
_min?: CommentMinAggregate;
|
||||
|
||||
@Field(() => CommentMaxAggregate, { nullable: true })
|
||||
_max?: CommentMaxAggregate;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CommentWhereInput } from './comment-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentOrderByWithRelationInput } from './comment-order-by-with-relation.input';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { CommentCountAggregateInput } from './comment-count-aggregate.input';
|
||||
import { CommentMinAggregateInput } from './comment-min-aggregate.input';
|
||||
import { CommentMaxAggregateInput } from './comment-max-aggregate.input';
|
||||
|
||||
@ArgsType()
|
||||
export class CommentAggregateArgs {
|
||||
@Field(() => CommentWhereInput, { nullable: true })
|
||||
@Type(() => CommentWhereInput)
|
||||
where?: CommentWhereInput;
|
||||
|
||||
@Field(() => [CommentOrderByWithRelationInput], { nullable: true })
|
||||
orderBy?: Array<CommentOrderByWithRelationInput>;
|
||||
|
||||
@Field(() => CommentWhereUniqueInput, { nullable: true })
|
||||
cursor?: CommentWhereUniqueInput;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
take?: number;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
skip?: number;
|
||||
|
||||
@Field(() => CommentCountAggregateInput, { nullable: true })
|
||||
_count?: CommentCountAggregateInput;
|
||||
|
||||
@Field(() => CommentMinAggregateInput, { nullable: true })
|
||||
_min?: CommentMinAggregateInput;
|
||||
|
||||
@Field(() => CommentMaxAggregateInput, { nullable: true })
|
||||
_max?: CommentMaxAggregateInput;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentCountAggregateInput {
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
id?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
createdAt?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
updatedAt?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
deletedAt?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
body?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
authorId?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
commentThreadId?: true;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
_all?: true;
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class CommentCountAggregate {
|
||||
@Field(() => Int, { nullable: false })
|
||||
id!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
createdAt!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
updatedAt!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
deletedAt!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
body!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
authorId!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
commentThreadId!: number;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
_all!: number;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentCountOrderByAggregateInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
createdAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
updatedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
body?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
authorId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
commentThreadId?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentCreateManyAuthorInput } from './comment-create-many-author.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@InputType()
|
||||
export class CommentCreateManyAuthorInputEnvelope {
|
||||
@Field(() => [CommentCreateManyAuthorInput], { nullable: false })
|
||||
@Type(() => CommentCreateManyAuthorInput)
|
||||
data!: Array<CommentCreateManyAuthorInput>;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
skipDuplicates?: boolean;
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentCreateManyAuthorInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
body!: string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
commentThreadId!: string;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentCreateManyCommentThreadInput } from './comment-create-many-comment-thread.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@InputType()
|
||||
export class CommentCreateManyCommentThreadInputEnvelope {
|
||||
@Field(() => [CommentCreateManyCommentThreadInput], { nullable: false })
|
||||
@Type(() => CommentCreateManyCommentThreadInput)
|
||||
data!: Array<CommentCreateManyCommentThreadInput>;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
skipDuplicates?: boolean;
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentCreateManyCommentThreadInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
body!: string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
authorId!: string;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentCreateManyWorkspaceInput } from './comment-create-many-workspace.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@InputType()
|
||||
export class CommentCreateManyWorkspaceInputEnvelope {
|
||||
@Field(() => [CommentCreateManyWorkspaceInput], { nullable: false })
|
||||
@Type(() => CommentCreateManyWorkspaceInput)
|
||||
data!: Array<CommentCreateManyWorkspaceInput>;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
skipDuplicates?: boolean;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentCreateManyWorkspaceInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
body!: string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
authorId!: string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
commentThreadId!: string;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentCreateManyInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
body!: string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
authorId!: string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
commentThreadId!: string;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentCreateWithoutAuthorInput } from './comment-create-without-author.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentCreateOrConnectWithoutAuthorInput } from './comment-create-or-connect-without-author.input';
|
||||
import { CommentCreateManyAuthorInputEnvelope } from './comment-create-many-author-input-envelope.input';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentCreateNestedManyWithoutAuthorInput {
|
||||
@Field(() => [CommentCreateWithoutAuthorInput], { nullable: true })
|
||||
@Type(() => CommentCreateWithoutAuthorInput)
|
||||
create?: Array<CommentCreateWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentCreateOrConnectWithoutAuthorInput], { nullable: true })
|
||||
@Type(() => CommentCreateOrConnectWithoutAuthorInput)
|
||||
connectOrCreate?: Array<CommentCreateOrConnectWithoutAuthorInput>;
|
||||
|
||||
@Field(() => CommentCreateManyAuthorInputEnvelope, { nullable: true })
|
||||
@Type(() => CommentCreateManyAuthorInputEnvelope)
|
||||
createMany?: CommentCreateManyAuthorInputEnvelope;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
connect?: Array<CommentWhereUniqueInput>;
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentCreateWithoutCommentThreadInput } from './comment-create-without-comment-thread.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { CommentCreateOrConnectWithoutCommentThreadInput } from './comment-create-or-connect-without-comment-thread.input';
|
||||
import { CommentCreateManyCommentThreadInputEnvelope } from './comment-create-many-comment-thread-input-envelope.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentCreateNestedManyWithoutCommentThreadInput {
|
||||
@HideField()
|
||||
create?: Array<CommentCreateWithoutCommentThreadInput>;
|
||||
|
||||
@HideField()
|
||||
connectOrCreate?: Array<CommentCreateOrConnectWithoutCommentThreadInput>;
|
||||
|
||||
@Field(() => CommentCreateManyCommentThreadInputEnvelope, { nullable: true })
|
||||
@Type(() => CommentCreateManyCommentThreadInputEnvelope)
|
||||
createMany?: CommentCreateManyCommentThreadInputEnvelope;
|
||||
|
||||
@HideField()
|
||||
connect?: Array<CommentWhereUniqueInput>;
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentCreateWithoutWorkspaceInput } from './comment-create-without-workspace.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentCreateOrConnectWithoutWorkspaceInput } from './comment-create-or-connect-without-workspace.input';
|
||||
import { CommentCreateManyWorkspaceInputEnvelope } from './comment-create-many-workspace-input-envelope.input';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentCreateNestedManyWithoutWorkspaceInput {
|
||||
@Field(() => [CommentCreateWithoutWorkspaceInput], { nullable: true })
|
||||
@Type(() => CommentCreateWithoutWorkspaceInput)
|
||||
create?: Array<CommentCreateWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CommentCreateOrConnectWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentCreateOrConnectWithoutWorkspaceInput)
|
||||
connectOrCreate?: Array<CommentCreateOrConnectWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => CommentCreateManyWorkspaceInputEnvelope, { nullable: true })
|
||||
@Type(() => CommentCreateManyWorkspaceInputEnvelope)
|
||||
createMany?: CommentCreateManyWorkspaceInputEnvelope;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
connect?: Array<CommentWhereUniqueInput>;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentCreateWithoutAuthorInput } from './comment-create-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentCreateOrConnectWithoutAuthorInput {
|
||||
@Field(() => CommentWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
where!: CommentWhereUniqueInput;
|
||||
|
||||
@Field(() => CommentCreateWithoutAuthorInput, { nullable: false })
|
||||
@Type(() => CommentCreateWithoutAuthorInput)
|
||||
create!: CommentCreateWithoutAuthorInput;
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentCreateWithoutCommentThreadInput } from './comment-create-without-comment-thread.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentCreateOrConnectWithoutCommentThreadInput {
|
||||
@Field(() => CommentWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
where!: CommentWhereUniqueInput;
|
||||
|
||||
@Field(() => CommentCreateWithoutCommentThreadInput, { nullable: false })
|
||||
@Type(() => CommentCreateWithoutCommentThreadInput)
|
||||
create!: CommentCreateWithoutCommentThreadInput;
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentCreateWithoutWorkspaceInput } from './comment-create-without-workspace.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentCreateOrConnectWithoutWorkspaceInput {
|
||||
@Field(() => CommentWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
where!: CommentWhereUniqueInput;
|
||||
|
||||
@Field(() => CommentCreateWithoutWorkspaceInput, { nullable: false })
|
||||
@Type(() => CommentCreateWithoutWorkspaceInput)
|
||||
create!: CommentCreateWithoutWorkspaceInput;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentThreadCreateNestedOneWithoutCommentsInput } from '../comment-thread/comment-thread-create-nested-one-without-comments.input';
|
||||
import { WorkspaceCreateNestedOneWithoutCommentsInput } from '../workspace/workspace-create-nested-one-without-comments.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentCreateWithoutAuthorInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
body!: string;
|
||||
|
||||
@Field(() => CommentThreadCreateNestedOneWithoutCommentsInput, {
|
||||
nullable: false,
|
||||
})
|
||||
commentThread!: CommentThreadCreateNestedOneWithoutCommentsInput;
|
||||
|
||||
@HideField()
|
||||
workspace!: WorkspaceCreateNestedOneWithoutCommentsInput;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserCreateNestedOneWithoutCommentsInput } from '../user/user-create-nested-one-without-comments.input';
|
||||
import { WorkspaceCreateNestedOneWithoutCommentsInput } from '../workspace/workspace-create-nested-one-without-comments.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentCreateWithoutCommentThreadInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
body!: string;
|
||||
|
||||
@Field(() => UserCreateNestedOneWithoutCommentsInput, { nullable: false })
|
||||
author!: UserCreateNestedOneWithoutCommentsInput;
|
||||
|
||||
@HideField()
|
||||
workspace!: WorkspaceCreateNestedOneWithoutCommentsInput;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserCreateNestedOneWithoutCommentsInput } from '../user/user-create-nested-one-without-comments.input';
|
||||
import { CommentThreadCreateNestedOneWithoutCommentsInput } from '../comment-thread/comment-thread-create-nested-one-without-comments.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentCreateWithoutWorkspaceInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
body!: string;
|
||||
|
||||
@Field(() => UserCreateNestedOneWithoutCommentsInput, { nullable: false })
|
||||
author!: UserCreateNestedOneWithoutCommentsInput;
|
||||
|
||||
@Field(() => CommentThreadCreateNestedOneWithoutCommentsInput, {
|
||||
nullable: false,
|
||||
})
|
||||
commentThread!: CommentThreadCreateNestedOneWithoutCommentsInput;
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { UserCreateNestedOneWithoutCommentsInput } from '../user/user-create-nested-one-without-comments.input';
|
||||
import { CommentThreadCreateNestedOneWithoutCommentsInput } from '../comment-thread/comment-thread-create-nested-one-without-comments.input';
|
||||
import { WorkspaceCreateNestedOneWithoutCommentsInput } from '../workspace/workspace-create-nested-one-without-comments.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentCreateInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
body!: string;
|
||||
|
||||
@Field(() => UserCreateNestedOneWithoutCommentsInput, { nullable: false })
|
||||
author!: UserCreateNestedOneWithoutCommentsInput;
|
||||
|
||||
@Field(() => CommentThreadCreateNestedOneWithoutCommentsInput, {
|
||||
nullable: false,
|
||||
})
|
||||
commentThread!: CommentThreadCreateNestedOneWithoutCommentsInput;
|
||||
|
||||
@HideField()
|
||||
workspace!: WorkspaceCreateNestedOneWithoutCommentsInput;
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CommentWhereInput } from './comment-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentOrderByWithAggregationInput } from './comment-order-by-with-aggregation.input';
|
||||
import { CommentScalarFieldEnum } from './comment-scalar-field.enum';
|
||||
import { CommentScalarWhereWithAggregatesInput } from './comment-scalar-where-with-aggregates.input';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { CommentCountAggregateInput } from './comment-count-aggregate.input';
|
||||
import { CommentMinAggregateInput } from './comment-min-aggregate.input';
|
||||
import { CommentMaxAggregateInput } from './comment-max-aggregate.input';
|
||||
|
||||
@ArgsType()
|
||||
export class CommentGroupByArgs {
|
||||
@Field(() => CommentWhereInput, { nullable: true })
|
||||
@Type(() => CommentWhereInput)
|
||||
where?: CommentWhereInput;
|
||||
|
||||
@Field(() => [CommentOrderByWithAggregationInput], { nullable: true })
|
||||
orderBy?: Array<CommentOrderByWithAggregationInput>;
|
||||
|
||||
@Field(() => [CommentScalarFieldEnum], { nullable: false })
|
||||
by!: Array<keyof typeof CommentScalarFieldEnum>;
|
||||
|
||||
@Field(() => CommentScalarWhereWithAggregatesInput, { nullable: true })
|
||||
having?: CommentScalarWhereWithAggregatesInput;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
take?: number;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
skip?: number;
|
||||
|
||||
@Field(() => CommentCountAggregateInput, { nullable: true })
|
||||
_count?: CommentCountAggregateInput;
|
||||
|
||||
@Field(() => CommentMinAggregateInput, { nullable: true })
|
||||
_min?: CommentMinAggregateInput;
|
||||
|
||||
@Field(() => CommentMaxAggregateInput, { nullable: true })
|
||||
_max?: CommentMaxAggregateInput;
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { CommentCountAggregate } from './comment-count-aggregate.output';
|
||||
import { CommentMinAggregate } from './comment-min-aggregate.output';
|
||||
import { CommentMaxAggregate } from './comment-max-aggregate.output';
|
||||
|
||||
@ObjectType()
|
||||
export class CommentGroupBy {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, { nullable: false })
|
||||
createdAt!: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: false })
|
||||
updatedAt!: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
body!: string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
authorId!: string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
commentThreadId!: string;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
@Field(() => CommentCountAggregate, { nullable: true })
|
||||
_count?: CommentCountAggregate;
|
||||
|
||||
@Field(() => CommentMinAggregate, { nullable: true })
|
||||
_min?: CommentMinAggregate;
|
||||
|
||||
@Field(() => CommentMaxAggregate, { nullable: true })
|
||||
_max?: CommentMaxAggregate;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentWhereInput } from './comment-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentListRelationFilter {
|
||||
@Field(() => CommentWhereInput, { nullable: true })
|
||||
every?: CommentWhereInput;
|
||||
|
||||
@Field(() => CommentWhereInput, { nullable: true })
|
||||
some?: CommentWhereInput;
|
||||
|
||||
@Field(() => CommentWhereInput, { nullable: true })
|
||||
none?: CommentWhereInput;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentMaxAggregateInput {
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
id?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
createdAt?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
updatedAt?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
deletedAt?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
body?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
authorId?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
commentThreadId?: true;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: true;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class CommentMaxAggregate {
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
body?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
authorId?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
commentThreadId?: string;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: string;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentMaxOrderByAggregateInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
createdAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
updatedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
body?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
authorId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
commentThreadId?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentMinAggregateInput {
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
id?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
createdAt?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
updatedAt?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
deletedAt?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
body?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
authorId?: true;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
commentThreadId?: true;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: true;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class CommentMinAggregate {
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
body?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
authorId?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
commentThreadId?: string;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: string;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentMinOrderByAggregateInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
createdAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
updatedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
body?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
authorId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
commentThreadId?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
|
||||
@InputType()
|
||||
export class CommentOrderByRelationAggregateInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
_count?: keyof typeof SortOrder;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { CommentCountOrderByAggregateInput } from './comment-count-order-by-aggregate.input';
|
||||
import { CommentMaxOrderByAggregateInput } from './comment-max-order-by-aggregate.input';
|
||||
import { CommentMinOrderByAggregateInput } from './comment-min-order-by-aggregate.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentOrderByWithAggregationInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
createdAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
updatedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
body?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
authorId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
commentThreadId?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => CommentCountOrderByAggregateInput, { nullable: true })
|
||||
_count?: CommentCountOrderByAggregateInput;
|
||||
|
||||
@Field(() => CommentMaxOrderByAggregateInput, { nullable: true })
|
||||
_max?: CommentMaxOrderByAggregateInput;
|
||||
|
||||
@Field(() => CommentMinOrderByAggregateInput, { nullable: true })
|
||||
_min?: CommentMinOrderByAggregateInput;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { SortOrder } from '../prisma/sort-order.enum';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { UserOrderByWithRelationInput } from '../user/user-order-by-with-relation.input';
|
||||
import { CommentThreadOrderByWithRelationInput } from '../comment-thread/comment-thread-order-by-with-relation.input';
|
||||
import { WorkspaceOrderByWithRelationInput } from '../workspace/workspace-order-by-with-relation.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentOrderByWithRelationInput {
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
id?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
createdAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
updatedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
deletedAt?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
body?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
authorId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => SortOrder, { nullable: true })
|
||||
commentThreadId?: keyof typeof SortOrder;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: keyof typeof SortOrder;
|
||||
|
||||
@Field(() => UserOrderByWithRelationInput, { nullable: true })
|
||||
author?: UserOrderByWithRelationInput;
|
||||
|
||||
@Field(() => CommentThreadOrderByWithRelationInput, { nullable: true })
|
||||
commentThread?: CommentThreadOrderByWithRelationInput;
|
||||
|
||||
@HideField()
|
||||
workspace?: WorkspaceOrderByWithRelationInput;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
import { registerEnumType } from '@nestjs/graphql';
|
||||
|
||||
export enum CommentScalarFieldEnum {
|
||||
id = 'id',
|
||||
createdAt = 'createdAt',
|
||||
updatedAt = 'updatedAt',
|
||||
deletedAt = 'deletedAt',
|
||||
body = 'body',
|
||||
authorId = 'authorId',
|
||||
commentThreadId = 'commentThreadId',
|
||||
workspaceId = 'workspaceId',
|
||||
}
|
||||
|
||||
registerEnumType(CommentScalarFieldEnum, {
|
||||
name: 'CommentScalarFieldEnum',
|
||||
description: undefined,
|
||||
});
|
||||
@@ -0,0 +1,42 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringWithAggregatesFilter } from '../prisma/string-with-aggregates-filter.input';
|
||||
import { DateTimeWithAggregatesFilter } from '../prisma/date-time-with-aggregates-filter.input';
|
||||
import { DateTimeNullableWithAggregatesFilter } from '../prisma/date-time-nullable-with-aggregates-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentScalarWhereWithAggregatesInput {
|
||||
@Field(() => [CommentScalarWhereWithAggregatesInput], { nullable: true })
|
||||
AND?: Array<CommentScalarWhereWithAggregatesInput>;
|
||||
|
||||
@Field(() => [CommentScalarWhereWithAggregatesInput], { nullable: true })
|
||||
OR?: Array<CommentScalarWhereWithAggregatesInput>;
|
||||
|
||||
@Field(() => [CommentScalarWhereWithAggregatesInput], { nullable: true })
|
||||
NOT?: Array<CommentScalarWhereWithAggregatesInput>;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, { nullable: true })
|
||||
id?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => DateTimeWithAggregatesFilter, { nullable: true })
|
||||
createdAt?: DateTimeWithAggregatesFilter;
|
||||
|
||||
@Field(() => DateTimeWithAggregatesFilter, { nullable: true })
|
||||
updatedAt?: DateTimeWithAggregatesFilter;
|
||||
|
||||
@Field(() => DateTimeNullableWithAggregatesFilter, { nullable: true })
|
||||
deletedAt?: DateTimeNullableWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, { nullable: true })
|
||||
body?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, { nullable: true })
|
||||
authorId?: StringWithAggregatesFilter;
|
||||
|
||||
@Field(() => StringWithAggregatesFilter, { nullable: true })
|
||||
commentThreadId?: StringWithAggregatesFilter;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringWithAggregatesFilter;
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFilter } from '../prisma/string-filter.input';
|
||||
import { DateTimeFilter } from '../prisma/date-time-filter.input';
|
||||
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentScalarWhereInput {
|
||||
@Field(() => [CommentScalarWhereInput], { nullable: true })
|
||||
AND?: Array<CommentScalarWhereInput>;
|
||||
|
||||
@Field(() => [CommentScalarWhereInput], { nullable: true })
|
||||
OR?: Array<CommentScalarWhereInput>;
|
||||
|
||||
@Field(() => [CommentScalarWhereInput], { nullable: true })
|
||||
NOT?: Array<CommentScalarWhereInput>;
|
||||
|
||||
@Field(() => StringFilter, { nullable: true })
|
||||
id?: StringFilter;
|
||||
|
||||
@Field(() => DateTimeFilter, { nullable: true })
|
||||
createdAt?: DateTimeFilter;
|
||||
|
||||
@Field(() => DateTimeFilter, { nullable: true })
|
||||
updatedAt?: DateTimeFilter;
|
||||
|
||||
@Field(() => DateTimeNullableFilter, { nullable: true })
|
||||
deletedAt?: DateTimeNullableFilter;
|
||||
|
||||
@Field(() => StringFilter, { nullable: true })
|
||||
body?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, { nullable: true })
|
||||
authorId?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, { nullable: true })
|
||||
commentThreadId?: StringFilter;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFilter;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
|
||||
@ObjectType()
|
||||
export class CommentThreadCount {
|
||||
@Field(() => Int, { nullable: false })
|
||||
commentThreadTargets?: number;
|
||||
|
||||
@Field(() => Int, { nullable: false })
|
||||
comments?: number;
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentCreateWithoutAuthorInput } from './comment-create-without-author.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentCreateOrConnectWithoutAuthorInput } from './comment-create-or-connect-without-author.input';
|
||||
import { CommentCreateManyAuthorInputEnvelope } from './comment-create-many-author-input-envelope.input';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUncheckedCreateNestedManyWithoutAuthorInput {
|
||||
@Field(() => [CommentCreateWithoutAuthorInput], { nullable: true })
|
||||
@Type(() => CommentCreateWithoutAuthorInput)
|
||||
create?: Array<CommentCreateWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentCreateOrConnectWithoutAuthorInput], { nullable: true })
|
||||
@Type(() => CommentCreateOrConnectWithoutAuthorInput)
|
||||
connectOrCreate?: Array<CommentCreateOrConnectWithoutAuthorInput>;
|
||||
|
||||
@Field(() => CommentCreateManyAuthorInputEnvelope, { nullable: true })
|
||||
@Type(() => CommentCreateManyAuthorInputEnvelope)
|
||||
createMany?: CommentCreateManyAuthorInputEnvelope;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
connect?: Array<CommentWhereUniqueInput>;
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentCreateWithoutCommentThreadInput } from './comment-create-without-comment-thread.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentCreateOrConnectWithoutCommentThreadInput } from './comment-create-or-connect-without-comment-thread.input';
|
||||
import { CommentCreateManyCommentThreadInputEnvelope } from './comment-create-many-comment-thread-input-envelope.input';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUncheckedCreateNestedManyWithoutCommentThreadInput {
|
||||
@Field(() => [CommentCreateWithoutCommentThreadInput], { nullable: true })
|
||||
@Type(() => CommentCreateWithoutCommentThreadInput)
|
||||
create?: Array<CommentCreateWithoutCommentThreadInput>;
|
||||
|
||||
@Field(() => [CommentCreateOrConnectWithoutCommentThreadInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentCreateOrConnectWithoutCommentThreadInput)
|
||||
connectOrCreate?: Array<CommentCreateOrConnectWithoutCommentThreadInput>;
|
||||
|
||||
@Field(() => CommentCreateManyCommentThreadInputEnvelope, { nullable: true })
|
||||
@Type(() => CommentCreateManyCommentThreadInputEnvelope)
|
||||
createMany?: CommentCreateManyCommentThreadInputEnvelope;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
connect?: Array<CommentWhereUniqueInput>;
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentCreateWithoutWorkspaceInput } from './comment-create-without-workspace.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentCreateOrConnectWithoutWorkspaceInput } from './comment-create-or-connect-without-workspace.input';
|
||||
import { CommentCreateManyWorkspaceInputEnvelope } from './comment-create-many-workspace-input-envelope.input';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUncheckedCreateNestedManyWithoutWorkspaceInput {
|
||||
@Field(() => [CommentCreateWithoutWorkspaceInput], { nullable: true })
|
||||
@Type(() => CommentCreateWithoutWorkspaceInput)
|
||||
create?: Array<CommentCreateWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CommentCreateOrConnectWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentCreateOrConnectWithoutWorkspaceInput)
|
||||
connectOrCreate?: Array<CommentCreateOrConnectWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => CommentCreateManyWorkspaceInputEnvelope, { nullable: true })
|
||||
@Type(() => CommentCreateManyWorkspaceInputEnvelope)
|
||||
createMany?: CommentCreateManyWorkspaceInputEnvelope;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
connect?: Array<CommentWhereUniqueInput>;
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentUncheckedCreateWithoutAuthorInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
body!: string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
commentThreadId!: string;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentUncheckedCreateWithoutCommentThreadInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
body!: string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
authorId!: string;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentUncheckedCreateWithoutWorkspaceInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
body!: string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
authorId!: string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
commentThreadId!: string;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentUncheckedCreateInput {
|
||||
@Field(() => String, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
createdAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
updatedAt?: Date | string;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt?: Date | string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
body!: string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
authorId!: string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
commentThreadId!: string;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
}
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentCreateWithoutAuthorInput } from './comment-create-without-author.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentCreateOrConnectWithoutAuthorInput } from './comment-create-or-connect-without-author.input';
|
||||
import { CommentUpsertWithWhereUniqueWithoutAuthorInput } from './comment-upsert-with-where-unique-without-author.input';
|
||||
import { CommentCreateManyAuthorInputEnvelope } from './comment-create-many-author-input-envelope.input';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { CommentUpdateWithWhereUniqueWithoutAuthorInput } from './comment-update-with-where-unique-without-author.input';
|
||||
import { CommentUpdateManyWithWhereWithoutAuthorInput } from './comment-update-many-with-where-without-author.input';
|
||||
import { CommentScalarWhereInput } from './comment-scalar-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUncheckedUpdateManyWithoutAuthorNestedInput {
|
||||
@Field(() => [CommentCreateWithoutAuthorInput], { nullable: true })
|
||||
@Type(() => CommentCreateWithoutAuthorInput)
|
||||
create?: Array<CommentCreateWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentCreateOrConnectWithoutAuthorInput], { nullable: true })
|
||||
@Type(() => CommentCreateOrConnectWithoutAuthorInput)
|
||||
connectOrCreate?: Array<CommentCreateOrConnectWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentUpsertWithWhereUniqueWithoutAuthorInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentUpsertWithWhereUniqueWithoutAuthorInput)
|
||||
upsert?: Array<CommentUpsertWithWhereUniqueWithoutAuthorInput>;
|
||||
|
||||
@Field(() => CommentCreateManyAuthorInputEnvelope, { nullable: true })
|
||||
@Type(() => CommentCreateManyAuthorInputEnvelope)
|
||||
createMany?: CommentCreateManyAuthorInputEnvelope;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
set?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
disconnect?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
delete?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
connect?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentUpdateWithWhereUniqueWithoutAuthorInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentUpdateWithWhereUniqueWithoutAuthorInput)
|
||||
update?: Array<CommentUpdateWithWhereUniqueWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentUpdateManyWithWhereWithoutAuthorInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentUpdateManyWithWhereWithoutAuthorInput)
|
||||
updateMany?: Array<CommentUpdateManyWithWhereWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentScalarWhereInput], { nullable: true })
|
||||
@Type(() => CommentScalarWhereInput)
|
||||
deleteMany?: Array<CommentScalarWhereInput>;
|
||||
}
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentCreateWithoutCommentThreadInput } from './comment-create-without-comment-thread.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentCreateOrConnectWithoutCommentThreadInput } from './comment-create-or-connect-without-comment-thread.input';
|
||||
import { CommentUpsertWithWhereUniqueWithoutCommentThreadInput } from './comment-upsert-with-where-unique-without-comment-thread.input';
|
||||
import { CommentCreateManyCommentThreadInputEnvelope } from './comment-create-many-comment-thread-input-envelope.input';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { CommentUpdateWithWhereUniqueWithoutCommentThreadInput } from './comment-update-with-where-unique-without-comment-thread.input';
|
||||
import { CommentUpdateManyWithWhereWithoutCommentThreadInput } from './comment-update-many-with-where-without-comment-thread.input';
|
||||
import { CommentScalarWhereInput } from './comment-scalar-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUncheckedUpdateManyWithoutCommentThreadNestedInput {
|
||||
@Field(() => [CommentCreateWithoutCommentThreadInput], { nullable: true })
|
||||
@Type(() => CommentCreateWithoutCommentThreadInput)
|
||||
create?: Array<CommentCreateWithoutCommentThreadInput>;
|
||||
|
||||
@Field(() => [CommentCreateOrConnectWithoutCommentThreadInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentCreateOrConnectWithoutCommentThreadInput)
|
||||
connectOrCreate?: Array<CommentCreateOrConnectWithoutCommentThreadInput>;
|
||||
|
||||
@Field(() => [CommentUpsertWithWhereUniqueWithoutCommentThreadInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentUpsertWithWhereUniqueWithoutCommentThreadInput)
|
||||
upsert?: Array<CommentUpsertWithWhereUniqueWithoutCommentThreadInput>;
|
||||
|
||||
@Field(() => CommentCreateManyCommentThreadInputEnvelope, { nullable: true })
|
||||
@Type(() => CommentCreateManyCommentThreadInputEnvelope)
|
||||
createMany?: CommentCreateManyCommentThreadInputEnvelope;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
set?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
disconnect?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
delete?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
connect?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentUpdateWithWhereUniqueWithoutCommentThreadInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentUpdateWithWhereUniqueWithoutCommentThreadInput)
|
||||
update?: Array<CommentUpdateWithWhereUniqueWithoutCommentThreadInput>;
|
||||
|
||||
@Field(() => [CommentUpdateManyWithWhereWithoutCommentThreadInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentUpdateManyWithWhereWithoutCommentThreadInput)
|
||||
updateMany?: Array<CommentUpdateManyWithWhereWithoutCommentThreadInput>;
|
||||
|
||||
@Field(() => [CommentScalarWhereInput], { nullable: true })
|
||||
@Type(() => CommentScalarWhereInput)
|
||||
deleteMany?: Array<CommentScalarWhereInput>;
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentUncheckedUpdateManyWithoutCommentsInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
body?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
commentThreadId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
}
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentCreateWithoutWorkspaceInput } from './comment-create-without-workspace.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentCreateOrConnectWithoutWorkspaceInput } from './comment-create-or-connect-without-workspace.input';
|
||||
import { CommentUpsertWithWhereUniqueWithoutWorkspaceInput } from './comment-upsert-with-where-unique-without-workspace.input';
|
||||
import { CommentCreateManyWorkspaceInputEnvelope } from './comment-create-many-workspace-input-envelope.input';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { CommentUpdateWithWhereUniqueWithoutWorkspaceInput } from './comment-update-with-where-unique-without-workspace.input';
|
||||
import { CommentUpdateManyWithWhereWithoutWorkspaceInput } from './comment-update-many-with-where-without-workspace.input';
|
||||
import { CommentScalarWhereInput } from './comment-scalar-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUncheckedUpdateManyWithoutWorkspaceNestedInput {
|
||||
@Field(() => [CommentCreateWithoutWorkspaceInput], { nullable: true })
|
||||
@Type(() => CommentCreateWithoutWorkspaceInput)
|
||||
create?: Array<CommentCreateWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CommentCreateOrConnectWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentCreateOrConnectWithoutWorkspaceInput)
|
||||
connectOrCreate?: Array<CommentCreateOrConnectWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CommentUpsertWithWhereUniqueWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentUpsertWithWhereUniqueWithoutWorkspaceInput)
|
||||
upsert?: Array<CommentUpsertWithWhereUniqueWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => CommentCreateManyWorkspaceInputEnvelope, { nullable: true })
|
||||
@Type(() => CommentCreateManyWorkspaceInputEnvelope)
|
||||
createMany?: CommentCreateManyWorkspaceInputEnvelope;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
set?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
disconnect?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
delete?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
connect?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentUpdateWithWhereUniqueWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentUpdateWithWhereUniqueWithoutWorkspaceInput)
|
||||
update?: Array<CommentUpdateWithWhereUniqueWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CommentUpdateManyWithWhereWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentUpdateManyWithWhereWithoutWorkspaceInput)
|
||||
updateMany?: Array<CommentUpdateManyWithWhereWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CommentScalarWhereInput], { nullable: true })
|
||||
@Type(() => CommentScalarWhereInput)
|
||||
deleteMany?: Array<CommentScalarWhereInput>;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentUncheckedUpdateManyInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
body?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
authorId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
commentThreadId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentUncheckedUpdateWithoutAuthorInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
body?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
commentThreadId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentUncheckedUpdateWithoutCommentThreadInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
body?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
authorId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUncheckedUpdateWithoutWorkspaceInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
body?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
authorId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
commentThreadId?: StringFieldUpdateOperationsInput;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentUncheckedUpdateInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
body?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
authorId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
commentThreadId?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFieldUpdateOperationsInput;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUpdateManyMutationInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
body?: StringFieldUpdateOperationsInput;
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentScalarWhereInput } from './comment-scalar-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentUpdateManyMutationInput } from './comment-update-many-mutation.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUpdateManyWithWhereWithoutAuthorInput {
|
||||
@Field(() => CommentScalarWhereInput, { nullable: false })
|
||||
@Type(() => CommentScalarWhereInput)
|
||||
where!: CommentScalarWhereInput;
|
||||
|
||||
@Field(() => CommentUpdateManyMutationInput, { nullable: false })
|
||||
@Type(() => CommentUpdateManyMutationInput)
|
||||
data!: CommentUpdateManyMutationInput;
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentScalarWhereInput } from './comment-scalar-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentUpdateManyMutationInput } from './comment-update-many-mutation.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUpdateManyWithWhereWithoutCommentThreadInput {
|
||||
@Field(() => CommentScalarWhereInput, { nullable: false })
|
||||
@Type(() => CommentScalarWhereInput)
|
||||
where!: CommentScalarWhereInput;
|
||||
|
||||
@Field(() => CommentUpdateManyMutationInput, { nullable: false })
|
||||
@Type(() => CommentUpdateManyMutationInput)
|
||||
data!: CommentUpdateManyMutationInput;
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentScalarWhereInput } from './comment-scalar-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentUpdateManyMutationInput } from './comment-update-many-mutation.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUpdateManyWithWhereWithoutWorkspaceInput {
|
||||
@Field(() => CommentScalarWhereInput, { nullable: false })
|
||||
@Type(() => CommentScalarWhereInput)
|
||||
where!: CommentScalarWhereInput;
|
||||
|
||||
@Field(() => CommentUpdateManyMutationInput, { nullable: false })
|
||||
@Type(() => CommentUpdateManyMutationInput)
|
||||
data!: CommentUpdateManyMutationInput;
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentCreateWithoutAuthorInput } from './comment-create-without-author.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentCreateOrConnectWithoutAuthorInput } from './comment-create-or-connect-without-author.input';
|
||||
import { CommentUpsertWithWhereUniqueWithoutAuthorInput } from './comment-upsert-with-where-unique-without-author.input';
|
||||
import { CommentCreateManyAuthorInputEnvelope } from './comment-create-many-author-input-envelope.input';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { CommentUpdateWithWhereUniqueWithoutAuthorInput } from './comment-update-with-where-unique-without-author.input';
|
||||
import { CommentUpdateManyWithWhereWithoutAuthorInput } from './comment-update-many-with-where-without-author.input';
|
||||
import { CommentScalarWhereInput } from './comment-scalar-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUpdateManyWithoutAuthorNestedInput {
|
||||
@Field(() => [CommentCreateWithoutAuthorInput], { nullable: true })
|
||||
@Type(() => CommentCreateWithoutAuthorInput)
|
||||
create?: Array<CommentCreateWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentCreateOrConnectWithoutAuthorInput], { nullable: true })
|
||||
@Type(() => CommentCreateOrConnectWithoutAuthorInput)
|
||||
connectOrCreate?: Array<CommentCreateOrConnectWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentUpsertWithWhereUniqueWithoutAuthorInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentUpsertWithWhereUniqueWithoutAuthorInput)
|
||||
upsert?: Array<CommentUpsertWithWhereUniqueWithoutAuthorInput>;
|
||||
|
||||
@Field(() => CommentCreateManyAuthorInputEnvelope, { nullable: true })
|
||||
@Type(() => CommentCreateManyAuthorInputEnvelope)
|
||||
createMany?: CommentCreateManyAuthorInputEnvelope;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
set?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
disconnect?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
delete?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
connect?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentUpdateWithWhereUniqueWithoutAuthorInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentUpdateWithWhereUniqueWithoutAuthorInput)
|
||||
update?: Array<CommentUpdateWithWhereUniqueWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentUpdateManyWithWhereWithoutAuthorInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentUpdateManyWithWhereWithoutAuthorInput)
|
||||
updateMany?: Array<CommentUpdateManyWithWhereWithoutAuthorInput>;
|
||||
|
||||
@Field(() => [CommentScalarWhereInput], { nullable: true })
|
||||
@Type(() => CommentScalarWhereInput)
|
||||
deleteMany?: Array<CommentScalarWhereInput>;
|
||||
}
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentCreateWithoutCommentThreadInput } from './comment-create-without-comment-thread.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentCreateOrConnectWithoutCommentThreadInput } from './comment-create-or-connect-without-comment-thread.input';
|
||||
import { CommentUpsertWithWhereUniqueWithoutCommentThreadInput } from './comment-upsert-with-where-unique-without-comment-thread.input';
|
||||
import { CommentCreateManyCommentThreadInputEnvelope } from './comment-create-many-comment-thread-input-envelope.input';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { CommentUpdateWithWhereUniqueWithoutCommentThreadInput } from './comment-update-with-where-unique-without-comment-thread.input';
|
||||
import { CommentUpdateManyWithWhereWithoutCommentThreadInput } from './comment-update-many-with-where-without-comment-thread.input';
|
||||
import { CommentScalarWhereInput } from './comment-scalar-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUpdateManyWithoutCommentThreadNestedInput {
|
||||
@Field(() => [CommentCreateWithoutCommentThreadInput], { nullable: true })
|
||||
@Type(() => CommentCreateWithoutCommentThreadInput)
|
||||
create?: Array<CommentCreateWithoutCommentThreadInput>;
|
||||
|
||||
@Field(() => [CommentCreateOrConnectWithoutCommentThreadInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentCreateOrConnectWithoutCommentThreadInput)
|
||||
connectOrCreate?: Array<CommentCreateOrConnectWithoutCommentThreadInput>;
|
||||
|
||||
@Field(() => [CommentUpsertWithWhereUniqueWithoutCommentThreadInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentUpsertWithWhereUniqueWithoutCommentThreadInput)
|
||||
upsert?: Array<CommentUpsertWithWhereUniqueWithoutCommentThreadInput>;
|
||||
|
||||
@Field(() => CommentCreateManyCommentThreadInputEnvelope, { nullable: true })
|
||||
@Type(() => CommentCreateManyCommentThreadInputEnvelope)
|
||||
createMany?: CommentCreateManyCommentThreadInputEnvelope;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
set?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
disconnect?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
delete?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
connect?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentUpdateWithWhereUniqueWithoutCommentThreadInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentUpdateWithWhereUniqueWithoutCommentThreadInput)
|
||||
update?: Array<CommentUpdateWithWhereUniqueWithoutCommentThreadInput>;
|
||||
|
||||
@Field(() => [CommentUpdateManyWithWhereWithoutCommentThreadInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentUpdateManyWithWhereWithoutCommentThreadInput)
|
||||
updateMany?: Array<CommentUpdateManyWithWhereWithoutCommentThreadInput>;
|
||||
|
||||
@Field(() => [CommentScalarWhereInput], { nullable: true })
|
||||
@Type(() => CommentScalarWhereInput)
|
||||
deleteMany?: Array<CommentScalarWhereInput>;
|
||||
}
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentCreateWithoutWorkspaceInput } from './comment-create-without-workspace.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentCreateOrConnectWithoutWorkspaceInput } from './comment-create-or-connect-without-workspace.input';
|
||||
import { CommentUpsertWithWhereUniqueWithoutWorkspaceInput } from './comment-upsert-with-where-unique-without-workspace.input';
|
||||
import { CommentCreateManyWorkspaceInputEnvelope } from './comment-create-many-workspace-input-envelope.input';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { CommentUpdateWithWhereUniqueWithoutWorkspaceInput } from './comment-update-with-where-unique-without-workspace.input';
|
||||
import { CommentUpdateManyWithWhereWithoutWorkspaceInput } from './comment-update-many-with-where-without-workspace.input';
|
||||
import { CommentScalarWhereInput } from './comment-scalar-where.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUpdateManyWithoutWorkspaceNestedInput {
|
||||
@Field(() => [CommentCreateWithoutWorkspaceInput], { nullable: true })
|
||||
@Type(() => CommentCreateWithoutWorkspaceInput)
|
||||
create?: Array<CommentCreateWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CommentCreateOrConnectWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentCreateOrConnectWithoutWorkspaceInput)
|
||||
connectOrCreate?: Array<CommentCreateOrConnectWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CommentUpsertWithWhereUniqueWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentUpsertWithWhereUniqueWithoutWorkspaceInput)
|
||||
upsert?: Array<CommentUpsertWithWhereUniqueWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => CommentCreateManyWorkspaceInputEnvelope, { nullable: true })
|
||||
@Type(() => CommentCreateManyWorkspaceInputEnvelope)
|
||||
createMany?: CommentCreateManyWorkspaceInputEnvelope;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
set?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
disconnect?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
delete?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentWhereUniqueInput], { nullable: true })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
connect?: Array<CommentWhereUniqueInput>;
|
||||
|
||||
@Field(() => [CommentUpdateWithWhereUniqueWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentUpdateWithWhereUniqueWithoutWorkspaceInput)
|
||||
update?: Array<CommentUpdateWithWhereUniqueWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CommentUpdateManyWithWhereWithoutWorkspaceInput], {
|
||||
nullable: true,
|
||||
})
|
||||
@Type(() => CommentUpdateManyWithWhereWithoutWorkspaceInput)
|
||||
updateMany?: Array<CommentUpdateManyWithWhereWithoutWorkspaceInput>;
|
||||
|
||||
@Field(() => [CommentScalarWhereInput], { nullable: true })
|
||||
@Type(() => CommentScalarWhereInput)
|
||||
deleteMany?: Array<CommentScalarWhereInput>;
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentUpdateWithoutAuthorInput } from './comment-update-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUpdateWithWhereUniqueWithoutAuthorInput {
|
||||
@Field(() => CommentWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
where!: CommentWhereUniqueInput;
|
||||
|
||||
@Field(() => CommentUpdateWithoutAuthorInput, { nullable: false })
|
||||
@Type(() => CommentUpdateWithoutAuthorInput)
|
||||
data!: CommentUpdateWithoutAuthorInput;
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentUpdateWithoutCommentThreadInput } from './comment-update-without-comment-thread.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUpdateWithWhereUniqueWithoutCommentThreadInput {
|
||||
@Field(() => CommentWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
where!: CommentWhereUniqueInput;
|
||||
|
||||
@Field(() => CommentUpdateWithoutCommentThreadInput, { nullable: false })
|
||||
@Type(() => CommentUpdateWithoutCommentThreadInput)
|
||||
data!: CommentUpdateWithoutCommentThreadInput;
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentUpdateWithoutWorkspaceInput } from './comment-update-without-workspace.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUpdateWithWhereUniqueWithoutWorkspaceInput {
|
||||
@Field(() => CommentWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
where!: CommentWhereUniqueInput;
|
||||
|
||||
@Field(() => CommentUpdateWithoutWorkspaceInput, { nullable: false })
|
||||
@Type(() => CommentUpdateWithoutWorkspaceInput)
|
||||
data!: CommentUpdateWithoutWorkspaceInput;
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { CommentThreadUpdateOneRequiredWithoutCommentsNestedInput } from '../comment-thread/comment-thread-update-one-required-without-comments-nested.input';
|
||||
import { WorkspaceUpdateOneRequiredWithoutCommentsNestedInput } from '../workspace/workspace-update-one-required-without-comments-nested.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentUpdateWithoutAuthorInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
body?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => CommentThreadUpdateOneRequiredWithoutCommentsNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
commentThread?: CommentThreadUpdateOneRequiredWithoutCommentsNestedInput;
|
||||
|
||||
@HideField()
|
||||
workspace?: WorkspaceUpdateOneRequiredWithoutCommentsNestedInput;
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { UserUpdateOneRequiredWithoutCommentsNestedInput } from '../user/user-update-one-required-without-comments-nested.input';
|
||||
import { WorkspaceUpdateOneRequiredWithoutCommentsNestedInput } from '../workspace/workspace-update-one-required-without-comments-nested.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentUpdateWithoutCommentThreadInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
body?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => UserUpdateOneRequiredWithoutCommentsNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
author?: UserUpdateOneRequiredWithoutCommentsNestedInput;
|
||||
|
||||
@HideField()
|
||||
workspace?: WorkspaceUpdateOneRequiredWithoutCommentsNestedInput;
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { UserUpdateOneRequiredWithoutCommentsNestedInput } from '../user/user-update-one-required-without-comments-nested.input';
|
||||
import { CommentThreadUpdateOneRequiredWithoutCommentsNestedInput } from '../comment-thread/comment-thread-update-one-required-without-comments-nested.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUpdateWithoutWorkspaceInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
body?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => UserUpdateOneRequiredWithoutCommentsNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
author?: UserUpdateOneRequiredWithoutCommentsNestedInput;
|
||||
|
||||
@Field(() => CommentThreadUpdateOneRequiredWithoutCommentsNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
commentThread?: CommentThreadUpdateOneRequiredWithoutCommentsNestedInput;
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFieldUpdateOperationsInput } from '../prisma/string-field-update-operations.input';
|
||||
import { DateTimeFieldUpdateOperationsInput } from '../prisma/date-time-field-update-operations.input';
|
||||
import { NullableDateTimeFieldUpdateOperationsInput } from '../prisma/nullable-date-time-field-update-operations.input';
|
||||
import { UserUpdateOneRequiredWithoutCommentsNestedInput } from '../user/user-update-one-required-without-comments-nested.input';
|
||||
import { CommentThreadUpdateOneRequiredWithoutCommentsNestedInput } from '../comment-thread/comment-thread-update-one-required-without-comments-nested.input';
|
||||
import { WorkspaceUpdateOneRequiredWithoutCommentsNestedInput } from '../workspace/workspace-update-one-required-without-comments-nested.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentUpdateInput {
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
id?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
createdAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => DateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
updatedAt?: DateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => NullableDateTimeFieldUpdateOperationsInput, { nullable: true })
|
||||
deletedAt?: NullableDateTimeFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => StringFieldUpdateOperationsInput, { nullable: true })
|
||||
body?: StringFieldUpdateOperationsInput;
|
||||
|
||||
@Field(() => UserUpdateOneRequiredWithoutCommentsNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
author?: UserUpdateOneRequiredWithoutCommentsNestedInput;
|
||||
|
||||
@Field(() => CommentThreadUpdateOneRequiredWithoutCommentsNestedInput, {
|
||||
nullable: true,
|
||||
})
|
||||
commentThread?: CommentThreadUpdateOneRequiredWithoutCommentsNestedInput;
|
||||
|
||||
@HideField()
|
||||
workspace?: WorkspaceUpdateOneRequiredWithoutCommentsNestedInput;
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentUpdateWithoutAuthorInput } from './comment-update-without-author.input';
|
||||
import { CommentCreateWithoutAuthorInput } from './comment-create-without-author.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUpsertWithWhereUniqueWithoutAuthorInput {
|
||||
@Field(() => CommentWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
where!: CommentWhereUniqueInput;
|
||||
|
||||
@Field(() => CommentUpdateWithoutAuthorInput, { nullable: false })
|
||||
@Type(() => CommentUpdateWithoutAuthorInput)
|
||||
update!: CommentUpdateWithoutAuthorInput;
|
||||
|
||||
@Field(() => CommentCreateWithoutAuthorInput, { nullable: false })
|
||||
@Type(() => CommentCreateWithoutAuthorInput)
|
||||
create!: CommentCreateWithoutAuthorInput;
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentUpdateWithoutCommentThreadInput } from './comment-update-without-comment-thread.input';
|
||||
import { CommentCreateWithoutCommentThreadInput } from './comment-create-without-comment-thread.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUpsertWithWhereUniqueWithoutCommentThreadInput {
|
||||
@Field(() => CommentWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
where!: CommentWhereUniqueInput;
|
||||
|
||||
@Field(() => CommentUpdateWithoutCommentThreadInput, { nullable: false })
|
||||
@Type(() => CommentUpdateWithoutCommentThreadInput)
|
||||
update!: CommentUpdateWithoutCommentThreadInput;
|
||||
|
||||
@Field(() => CommentCreateWithoutCommentThreadInput, { nullable: false })
|
||||
@Type(() => CommentCreateWithoutCommentThreadInput)
|
||||
create!: CommentCreateWithoutCommentThreadInput;
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentUpdateWithoutWorkspaceInput } from './comment-update-without-workspace.input';
|
||||
import { CommentCreateWithoutWorkspaceInput } from './comment-create-without-workspace.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentUpsertWithWhereUniqueWithoutWorkspaceInput {
|
||||
@Field(() => CommentWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
where!: CommentWhereUniqueInput;
|
||||
|
||||
@Field(() => CommentUpdateWithoutWorkspaceInput, { nullable: false })
|
||||
@Type(() => CommentUpdateWithoutWorkspaceInput)
|
||||
update!: CommentUpdateWithoutWorkspaceInput;
|
||||
|
||||
@Field(() => CommentCreateWithoutWorkspaceInput, { nullable: false })
|
||||
@Type(() => CommentCreateWithoutWorkspaceInput)
|
||||
create!: CommentCreateWithoutWorkspaceInput;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
|
||||
@InputType()
|
||||
export class CommentWhereUniqueInput {
|
||||
@Field(() => String, { nullable: true })
|
||||
id?: string;
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { StringFilter } from '../prisma/string-filter.input';
|
||||
import { DateTimeFilter } from '../prisma/date-time-filter.input';
|
||||
import { DateTimeNullableFilter } from '../prisma/date-time-nullable-filter.input';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { UserRelationFilter } from '../user/user-relation-filter.input';
|
||||
import { CommentThreadRelationFilter } from '../comment-thread/comment-thread-relation-filter.input';
|
||||
import { WorkspaceRelationFilter } from '../workspace/workspace-relation-filter.input';
|
||||
|
||||
@InputType()
|
||||
export class CommentWhereInput {
|
||||
@Field(() => [CommentWhereInput], { nullable: true })
|
||||
AND?: Array<CommentWhereInput>;
|
||||
|
||||
@Field(() => [CommentWhereInput], { nullable: true })
|
||||
OR?: Array<CommentWhereInput>;
|
||||
|
||||
@Field(() => [CommentWhereInput], { nullable: true })
|
||||
NOT?: Array<CommentWhereInput>;
|
||||
|
||||
@Field(() => StringFilter, { nullable: true })
|
||||
id?: StringFilter;
|
||||
|
||||
@Field(() => DateTimeFilter, { nullable: true })
|
||||
createdAt?: DateTimeFilter;
|
||||
|
||||
@Field(() => DateTimeFilter, { nullable: true })
|
||||
updatedAt?: DateTimeFilter;
|
||||
|
||||
@Field(() => DateTimeNullableFilter, { nullable: true })
|
||||
deletedAt?: DateTimeNullableFilter;
|
||||
|
||||
@Field(() => StringFilter, { nullable: true })
|
||||
body?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, { nullable: true })
|
||||
authorId?: StringFilter;
|
||||
|
||||
@Field(() => StringFilter, { nullable: true })
|
||||
commentThreadId?: StringFilter;
|
||||
|
||||
@HideField()
|
||||
workspaceId?: StringFilter;
|
||||
|
||||
@Field(() => UserRelationFilter, { nullable: true })
|
||||
author?: UserRelationFilter;
|
||||
|
||||
@Field(() => CommentThreadRelationFilter, { nullable: true })
|
||||
commentThread?: CommentThreadRelationFilter;
|
||||
|
||||
@HideField()
|
||||
workspace?: WorkspaceRelationFilter;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ObjectType } from '@nestjs/graphql';
|
||||
import { ID } from '@nestjs/graphql';
|
||||
import { HideField } from '@nestjs/graphql';
|
||||
import { User } from '../user/user.model';
|
||||
import { CommentThread } from '../comment-thread/comment-thread.model';
|
||||
import { Workspace } from '../workspace/workspace.model';
|
||||
|
||||
@ObjectType()
|
||||
export class Comment {
|
||||
@Field(() => ID, { nullable: false })
|
||||
id!: string;
|
||||
|
||||
@Field(() => Date, { nullable: false })
|
||||
createdAt!: Date;
|
||||
|
||||
@Field(() => Date, { nullable: false })
|
||||
updatedAt!: Date;
|
||||
|
||||
@Field(() => Date, { nullable: true })
|
||||
deletedAt!: Date | null;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
body!: string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
authorId!: string;
|
||||
|
||||
@Field(() => String, { nullable: false })
|
||||
commentThreadId!: string;
|
||||
|
||||
@HideField()
|
||||
workspaceId!: string;
|
||||
|
||||
@Field(() => User, { nullable: false })
|
||||
author?: User;
|
||||
|
||||
@Field(() => CommentThread, { nullable: false })
|
||||
commentThread?: CommentThread;
|
||||
|
||||
@HideField()
|
||||
workspace?: Workspace;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CommentCreateManyInput } from './comment-create-many.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class CreateManyCommentArgs {
|
||||
@Field(() => [CommentCreateManyInput], { nullable: false })
|
||||
@Type(() => CommentCreateManyInput)
|
||||
data!: Array<CommentCreateManyInput>;
|
||||
|
||||
@Field(() => Boolean, { nullable: true })
|
||||
skipDuplicates?: boolean;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CommentCreateInput } from './comment-create.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class CreateOneCommentArgs {
|
||||
@Field(() => CommentCreateInput, { nullable: false })
|
||||
@Type(() => CommentCreateInput)
|
||||
data!: CommentCreateInput;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CommentWhereInput } from './comment-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class DeleteManyCommentArgs {
|
||||
@Field(() => CommentWhereInput, { nullable: true })
|
||||
@Type(() => CommentWhereInput)
|
||||
where?: CommentWhereInput;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class DeleteOneCommentArgs {
|
||||
@Field(() => CommentWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
where!: CommentWhereUniqueInput;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CommentWhereInput } from './comment-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentOrderByWithRelationInput } from './comment-order-by-with-relation.input';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { CommentScalarFieldEnum } from './comment-scalar-field.enum';
|
||||
|
||||
@ArgsType()
|
||||
export class FindFirstCommentOrThrowArgs {
|
||||
@Field(() => CommentWhereInput, { nullable: true })
|
||||
@Type(() => CommentWhereInput)
|
||||
where?: CommentWhereInput;
|
||||
|
||||
@Field(() => [CommentOrderByWithRelationInput], { nullable: true })
|
||||
orderBy?: Array<CommentOrderByWithRelationInput>;
|
||||
|
||||
@Field(() => CommentWhereUniqueInput, { nullable: true })
|
||||
cursor?: CommentWhereUniqueInput;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
take?: number;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
skip?: number;
|
||||
|
||||
@Field(() => [CommentScalarFieldEnum], { nullable: true })
|
||||
distinct?: Array<keyof typeof CommentScalarFieldEnum>;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CommentWhereInput } from './comment-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentOrderByWithRelationInput } from './comment-order-by-with-relation.input';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { CommentScalarFieldEnum } from './comment-scalar-field.enum';
|
||||
|
||||
@ArgsType()
|
||||
export class FindFirstCommentArgs {
|
||||
@Field(() => CommentWhereInput, { nullable: true })
|
||||
@Type(() => CommentWhereInput)
|
||||
where?: CommentWhereInput;
|
||||
|
||||
@Field(() => [CommentOrderByWithRelationInput], { nullable: true })
|
||||
orderBy?: Array<CommentOrderByWithRelationInput>;
|
||||
|
||||
@Field(() => CommentWhereUniqueInput, { nullable: true })
|
||||
cursor?: CommentWhereUniqueInput;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
take?: number;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
skip?: number;
|
||||
|
||||
@Field(() => [CommentScalarFieldEnum], { nullable: true })
|
||||
distinct?: Array<keyof typeof CommentScalarFieldEnum>;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CommentWhereInput } from './comment-where.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentOrderByWithRelationInput } from './comment-order-by-with-relation.input';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { Int } from '@nestjs/graphql';
|
||||
import { CommentScalarFieldEnum } from './comment-scalar-field.enum';
|
||||
|
||||
@ArgsType()
|
||||
export class FindManyCommentArgs {
|
||||
@Field(() => CommentWhereInput, { nullable: true })
|
||||
@Type(() => CommentWhereInput)
|
||||
where?: CommentWhereInput;
|
||||
|
||||
@Field(() => [CommentOrderByWithRelationInput], { nullable: true })
|
||||
orderBy?: Array<CommentOrderByWithRelationInput>;
|
||||
|
||||
@Field(() => CommentWhereUniqueInput, { nullable: true })
|
||||
cursor?: CommentWhereUniqueInput;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
take?: number;
|
||||
|
||||
@Field(() => Int, { nullable: true })
|
||||
skip?: number;
|
||||
|
||||
@Field(() => [CommentScalarFieldEnum], { nullable: true })
|
||||
distinct?: Array<keyof typeof CommentScalarFieldEnum>;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class FindUniqueCommentOrThrowArgs {
|
||||
@Field(() => CommentWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
where!: CommentWhereUniqueInput;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
|
||||
@ArgsType()
|
||||
export class FindUniqueCommentArgs {
|
||||
@Field(() => CommentWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
where!: CommentWhereUniqueInput;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CommentUpdateManyMutationInput } from './comment-update-many-mutation.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentWhereInput } from './comment-where.input';
|
||||
|
||||
@ArgsType()
|
||||
export class UpdateManyCommentArgs {
|
||||
@Field(() => CommentUpdateManyMutationInput, { nullable: false })
|
||||
@Type(() => CommentUpdateManyMutationInput)
|
||||
data!: CommentUpdateManyMutationInput;
|
||||
|
||||
@Field(() => CommentWhereInput, { nullable: true })
|
||||
@Type(() => CommentWhereInput)
|
||||
where?: CommentWhereInput;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CommentUpdateInput } from './comment-update.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
|
||||
@ArgsType()
|
||||
export class UpdateOneCommentArgs {
|
||||
@Field(() => CommentUpdateInput, { nullable: false })
|
||||
@Type(() => CommentUpdateInput)
|
||||
data!: CommentUpdateInput;
|
||||
|
||||
@Field(() => CommentWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
where!: CommentWhereUniqueInput;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CommentWhereUniqueInput } from './comment-where-unique.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { CommentCreateInput } from './comment-create.input';
|
||||
import { CommentUpdateInput } from './comment-update.input';
|
||||
|
||||
@ArgsType()
|
||||
export class UpsertOneCommentArgs {
|
||||
@Field(() => CommentWhereUniqueInput, { nullable: false })
|
||||
@Type(() => CommentWhereUniqueInput)
|
||||
where!: CommentWhereUniqueInput;
|
||||
|
||||
@Field(() => CommentCreateInput, { nullable: false })
|
||||
@Type(() => CommentCreateInput)
|
||||
create!: CommentCreateInput;
|
||||
|
||||
@Field(() => CommentUpdateInput, { nullable: false })
|
||||
@Type(() => CommentUpdateInput)
|
||||
update!: CommentUpdateInput;
|
||||
}
|
||||
Reference in New Issue
Block a user