* Add targetColumnMap to FieldMetadata * fix * remove console.log * fix test
22 lines
381 B
TypeScript
22 lines
381 B
TypeScript
import { ArgsType, Field } from '@nestjs/graphql';
|
|
|
|
import { IsNotEmpty, IsString } from 'class-validator';
|
|
|
|
@ArgsType()
|
|
export class CreateCustomFieldInput {
|
|
@Field(() => String)
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
displayName: string;
|
|
|
|
@Field(() => String)
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
type: string;
|
|
|
|
@Field(() => String)
|
|
@IsNotEmpty()
|
|
@IsString()
|
|
objectId: string;
|
|
}
|