Web
Mongoose | findByIdAndDelete()
taenyLog
2023. 6. 29. 06:48
반응형
findByIdAndDelete() 함수는 일치하는 문서를 찾아 제거하고 찾은 문서를 콜백에 전달
https://mongoosejs.com/docs/api/model.html
Mongoose v7.3.1: Model
Parameters: doc «Object» values for initial set [fields] «Object» optional object containing the fields that were selected in the query which returned this document. You do not need to set this parameter to ensure Mongoose handles your query projection
mongoosejs.com
반응형