create-mypage.input.ts 271 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 import { Field, InputType } from '@nestjs/graphql'; import { IsAlpha } from 'class-validator'; import { Entity } from 'typeorm'; @Entity() @InputType() export class CreateMyInput { @IsAlpha() @Field() name: string; @Field({ nullable: true }) type?: string; }