-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[송지민] 과제 제출 #5
base: main
Are you sure you want to change the base?
[송지민] 과제 제출 #5
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
swagger 설정을 따로 파일을 만들어서 하니 깔끔해서 좋은 것 같습니다!
swagger를 여러개 만드는 경우도 있더라구요! 그래서 이 방법이 좋아 보입니다👍
}); | ||
await this.userRepository.save(user); | ||
|
||
console.log(user); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저도 자주 까먹는데 디버깅용 console.log()
삭제하는 습관을 들이면 좋을 것 같아요👍
}) | ||
createdAt: Date; | ||
@DeleteDateColumn({ type: 'timestamp' }) | ||
deletedAt?: Date | null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
보통 entity에 optional을 붙이기도 하나요?
optioanl을 붙이면 deletedAt Column이 있어도 되고 없어도 된다는 뜻이 되지 않나요?!
하지만 deletedAt Column은 User Entity에 필수로 보여서요!
} | ||
|
||
export class ResponseUserDto { | ||
@Expose() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Expose() 데코레이터는 무엇인가요?!
끝