You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ 문제상황 ]
mongodb 데이터를 CRUD 하면서 중복 혹은 존재하지 않는 데이터를 처리해야 한다.
findOne(), findOneAndDelete()를 호출하면
db에 해당 데이터가 존재하지 않음에도 불구하고 ERROR를 던지지 않으며, 기본적인 Object를 반환한다.
🐞 버그 레포트
[ 문제상황 ]
mongodb 데이터를 CRUD 하면서 중복 혹은 존재하지 않는 데이터를 처리해야 한다.
findOne(), findOneAndDelete()를 호출하면
db에 해당 데이터가 존재하지 않음에도 불구하고 ERROR를 던지지 않으며, 기본적인 Object를 반환한다.
추후 처리 추가