Skip to content

Commit

Permalink
Update post-order.input.ts (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
cha2hyun authored Nov 17, 2023
1 parent ba67287 commit 225e5a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/posts/dto/post-order.input.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { InputType, registerEnumType } from '@nestjs/graphql';
import { Field, InputType, registerEnumType } from '@nestjs/graphql';
import { Order } from '../../common/order/order';

export enum PostOrderField {
Expand All @@ -16,6 +16,7 @@ registerEnumType(PostOrderField, {
});

@InputType()
export class PostOrder extends Order {
export class PostOrder extends Order {
@Field(() => PostOrderField)
field: PostOrderField;
}

0 comments on commit 225e5a9

Please sign in to comment.