반응형
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Archives
Today
Total
관리 메뉴

taenyLog

Mongoose | findByIdAndDelete() 본문

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

 

 

반응형

'Web' 카테고리의 다른 글

connection error MongoParseError: option usecreateindex is not supported  (0) 2023.06.29
async await 쓰는 이유  (0) 2023.06.29
Mongoose | findByIdAndUpdate()  (0) 2023.06.29
Express Post 요청 접근  (0) 2023.06.28
http://localhost:3000 에러  (0) 2023.06.28