feat: clean prisma file, add validation, add prisma editor (#472)
This commit is contained in:
@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { CommentThreadTargetUpdateManyMutationInput } from './comment-thread-target-update-many-mutation.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { ValidateNested } from 'class-validator';
|
||||
import { CommentThreadTargetWhereInput } from './comment-thread-target-where.input';
|
||||
|
||||
@ArgsType()
|
||||
@ -9,6 +10,8 @@ export class UpdateManyCommentThreadTargetArgs {
|
||||
|
||||
@Field(() => CommentThreadTargetUpdateManyMutationInput, {nullable:false})
|
||||
@Type(() => CommentThreadTargetUpdateManyMutationInput)
|
||||
@ValidateNested({each: true})
|
||||
@Type(() => CommentThreadTargetUpdateManyMutationInput)
|
||||
data!: CommentThreadTargetUpdateManyMutationInput;
|
||||
|
||||
@Field(() => CommentThreadTargetWhereInput, {nullable:true})
|
||||
|
||||
Reference in New Issue
Block a user