質問編集履歴
2
誤字の訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -22,11 +22,9 @@
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
TypeError: Cannot read property '
|
25
|
+
TypeError: Cannot read property 'db' of undefined
|
26
|
-
|
27
|
-
|
26
|
+
|
28
|
-
|
29
|
-
at D:\nodejs\weblog\lib\database\insert-sample.js:6
|
27
|
+
at D:\nodejs\weblog\lib\database\insert-sample.js:65:19
|
30
28
|
|
31
29
|
at D:\nodejs\weblog\node_modules\mongodb\lib\utils.js:665:9
|
32
30
|
|
@@ -44,6 +42,8 @@
|
|
44
42
|
|
45
43
|
at D:\nodejs\weblog\node_modules\mongodb\lib\core\sdam\server.js:282:16
|
46
44
|
|
45
|
+
at Object.callback (D:\nodejs\weblog\node_modules\mongodb\lib\cmap\connection_pool.js:351:7)
|
46
|
+
|
47
47
|
```
|
48
48
|
|
49
49
|
|
1
誤字の訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,6 +6,8 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
+
エラーメッセージ
|
10
|
+
|
9
11
|
```エラーメッセージ
|
10
12
|
|
11
13
|
PS D:\nodejs\weblog> node ./lib/database/insert-sample.js
|
@@ -46,6 +48,8 @@
|
|
46
48
|
|
47
49
|
|
48
50
|
|
51
|
+
insert-sample.js
|
52
|
+
|
49
53
|
```insert-sample.js
|
50
54
|
|
51
55
|
var CONNECTION_URL = require("../../config/mongodb.config.js").CONNECTION_URL;
|
@@ -202,6 +206,8 @@
|
|
202
206
|
|
203
207
|
|
204
208
|
|
209
|
+
mongodb.config.js
|
210
|
+
|
205
211
|
```mongodb.config.js
|
206
212
|
|
207
213
|
module.exports = {
|