Q&A
PickType, OmitType은 swagger 제공 메서드를 꼭 사용해야하나요 ?
찾아보니 이런게 있는데 잘 사용했는지 모르겠네요 cats.request.dto.ts ------------------------------------------------ import { Cat } from '../cats.entity'; export type CatRequestDto = Pick ; cats.dto.ts ------------------------------------------------ import { Cat } from '../cats.entity'; export type ReadOnlyCatDto = Omit ; // mongo 아니고 mysql을 사용해서 entity에 id가 정의되어 있습니다.
- Likes
- 1
- Comments
- 1
- Viewcount
- 442

