반응형
[MongoDB] Create(생성), Read(조회), Update(변경), Delete(삭제)_Bulk포함
1. Create(생성)
db.collection.insertOne(), db.collection.insertMany(), db.collection.bulkWrite(), Bulk.insert()
2. Read(조회)
db.collection.find(), db.collection.findOne(), Bulk.find()
3. Update(변경)
db.collection.findOneAndUpdate(), db.collection.updateOne(), db.collection.updateMany(), db.collection.findOneAndReplace(), db.collection.replaceOne(), db.collection.findAndModify()
Bulk.find.update(), Bulk.find.updateOne(), Bulk.find.replaceOne()
4. Delete(삭제)
db.collection.remove(), db.collection.deleteOne(), db.collection.deleteMany(), db.collection.findOneAndDelete(), Bulk.find.remove(), Bulk.find.removeOne(), Bulk.find.delete(), Bulk.find.deleteOne()
반응형
'데이터베이스 > MongoDB' 카테고리의 다른 글
[Mongoose] Read관련, 차이점 (0) | 2023.02.26 |
---|---|
[MongoDB] Read관련, 차이점 (0) | 2023.02.26 |
[Mongoose] Model (CRUD 관련) 모음 (0) | 2023.02.25 |
[Mongoose] Deprecation Warnings(remove(), update(), count()) (0) | 2023.02.24 |
[MongoDB] 데이터 추출(페이지네이션), skip(), hasNext(), next() (0) | 2023.02.20 |
댓글