질문&답변
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 해주는 것 같습니다.
- 좋아요수
- 3
- 댓글수
- 4
- 조회수
- 1546





