Hỏi & Đáp
existsByEmail 에서 Type '{_id: any; }' is not assignable to type 'boolean'. 에러 발생
https://mongoosejs.com/docs/migrating_to_6.html#model-exists-returns-a-lean-document-instead-of-boolean mongoose v6 이상에서는 exist()에서 boolean 값이 아닌 _id 값을 return 해주는 것 같습니다.
- Lượt thích
- 3
- Số bình luận
- 4
- Lượt xem
- 1544

