• 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
  • post.input.ts
  • 장재혁's avatar
    Add post api · 73ba919c
    73ba919c
    장재혁 authored 2021-04-29 03:37:48 +0900
post.input.ts 265 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import { Field, InputType } from '@nestjs/graphql';
import { Entity } from 'typeorm';

@Entity()
@InputType()
export class GetPostInput {
  @Field()
  id: number;

  @Field({ nullable: true })
  author?: string;

  @Field({ nullable: true })
  category?: string;
}