Files
twenty/server/src/core/@generated/company/create-many-company.args.ts
Jérémy M 2961fed932 feat: refactor storage module (#521)
* feat: refactor storage module

* fix: folder need to be kebab case

* fix: comment wrong auth
2023-07-05 14:34:39 +00:00

19 lines
591 B
TypeScript

import { Field } from '@nestjs/graphql';
import { ArgsType } from '@nestjs/graphql';
import { CompanyCreateManyInput } from './company-create-many.input';
import { Type } from 'class-transformer';
import { ValidateNested } from 'class-validator';
@ArgsType()
export class CreateManyCompanyArgs {
@Field(() => [CompanyCreateManyInput], {nullable:false})
@Type(() => CompanyCreateManyInput)
@ValidateNested({each: true})
@Type(() => CompanyCreateManyInput)
data!: Array<CompanyCreateManyInput>;
@Field(() => Boolean, {nullable:true})
skipDuplicates?: boolean;
}