Skip to content

Commit 6b8fd50

Browse files
committed
第19章 操作MongoDB
1 parent e8877c9 commit 6b8fd50

File tree

4 files changed

+211
-91
lines changed

4 files changed

+211
-91
lines changed

nodejs-book-samples/samples/mongodb-demo/index.js renamed to nodejs-book-samples/samples/ch190301/mongodb-demo/index.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ client.connect(function (err) {
4747
client.close();
4848
});
4949

50-
// 删除单个文档
51-
removeDocument(db, function () {
52-
client.close();
53-
});
54-
55-
// 删除多个文档
56-
removeDocuments(db, function () {
57-
client.close();
58-
});
50+
// // 删除单个文档
51+
// removeDocument(db, function () {
52+
// client.close();
53+
// });
54+
55+
// // 删除多个文档
56+
// removeDocuments(db, function () {
57+
// client.close();
58+
// });
5959

6060
});
6161

nodejs-book-samples/samples/ch190301/mongodb-demo/package-lock.json

Lines changed: 201 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nodejs-book-samples/samples/mongodb-demo/package.json renamed to nodejs-book-samples/samples/ch190301/mongodb-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"author": "waylau.com",
1010
"license": "ISC",
1111
"dependencies": {
12-
"mongodb": "^3.2.7"
12+
"mongodb": "^3.7.4"
1313
}
1414
}

nodejs-book-samples/samples/mongodb-demo/package-lock.json

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)