0
我的mongoose db正在與節點server.but連接,但是當我插入值時。它得到的錯誤是TypeError:無法通過mangoose讀取nodejs中undefined屬性的'length'
E:\S-chat\server\node_modules\mongoose\node_modules\mongodb\lib\mongodb\connection\base.js:246
throw message;
^
TypeError: Cannot read property 'length' of undefined
at processResults (E:\S-chat\server\node_modules\mongoose\node_modules\mongodb\lib\mongodb\db.js:1581:31)
at E:\S-chat\server\node_modules\mongoose\node_modules\mongodb\lib\mongodb\db.js:1619:20
。任何解決方案,請
難道它和[這裏是一樣的(http://stackoverflow.com/questions/32353374/node-not-connecting-to-mongo-more-than-once)? –