feat: clean prisma file, add validation, add prisma editor (#472)
This commit is contained in:
@ -2,12 +2,15 @@ import { Field } from '@nestjs/graphql';
|
||||
import { ArgsType } from '@nestjs/graphql';
|
||||
import { UserCreateManyInput } from './user-create-many.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { ValidateNested } from 'class-validator';
|
||||
|
||||
@ArgsType()
|
||||
export class CreateManyUserArgs {
|
||||
|
||||
@Field(() => [UserCreateManyInput], {nullable:false})
|
||||
@Type(() => UserCreateManyInput)
|
||||
@ValidateNested({each: true})
|
||||
@Type(() => UserCreateManyInput)
|
||||
data!: Array<UserCreateManyInput>;
|
||||
|
||||
@Field(() => Boolean, {nullable:true})
|
||||
|
||||
Reference in New Issue
Block a user