feat: clean prisma file, add validation, add prisma editor (#472)

This commit is contained in:
Jérémy M
2023-06-29 15:41:58 +02:00
committed by GitHub
parent aa612b5fc9
commit d9af205ccb
520 changed files with 6751 additions and 5241 deletions
@@ -2,6 +2,7 @@ import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { UserUpdateManyMutationInput } from './user-update-many-mutation.input';
import { Type } from 'class-transformer';
import { ValidateNested } from 'class-validator';
import { UserWhereInput } from './user-where.input';
@ArgsType()
@@ -9,6 +10,8 @@ export class UpdateManyUserArgs {
@Field(() => UserUpdateManyMutationInput, {nullable:false})
@Type(() => UserUpdateManyMutationInput)
@ValidateNested({each: true})
@Type(() => UserUpdateManyMutationInput)
data!: UserUpdateManyMutationInput;
@Field(() => UserWhereInput, {nullable:true})