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 { CompanyUpdateInput } from './company-update.input';
|
||||
import { Type } from 'class-transformer';
|
||||
import { ValidateNested } from 'class-validator';
|
||||
import { CompanyWhereUniqueInput } from './company-where-unique.input';
|
||||
|
||||
@ArgsType()
|
||||
@ -9,6 +10,8 @@ export class UpdateOneCompanyArgs {
|
||||
|
||||
@Field(() => CompanyUpdateInput, {nullable:false})
|
||||
@Type(() => CompanyUpdateInput)
|
||||
@ValidateNested({each: true})
|
||||
@Type(() => CompanyUpdateInput)
|
||||
data!: CompanyUpdateInput;
|
||||
|
||||
@Field(() => CompanyWhereUniqueInput, {nullable:false})
|
||||
|
||||
Reference in New Issue
Block a user