• This project
    • Loading...
  • Sign in

2021-1-capstone-design2 / 2015104215

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • 2015104215
  • ..
  • dto
  • create-mypage.input.ts
  • 장재혁's avatar
    Add typeorm ,graphql settings for api testings · 65b87f07
    65b87f07
    장재혁 authored 2021-04-26 03:14:21 +0900
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;
}