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; }