MongoDB的一次錯誤記錄
錯誤資訊:
node_modules\mongoose\lib\schema.js:430
throw new Error('`' + path + '` may not be used as a schema pathname');
^
Error: `collection` may not be used as a schema pathname
原因:
在設計Schema時有一個欄位,用了‘collection’,寫在‘collections’即可。
相關文章
- 記錄一次根據錯誤資訊無法定位錯誤的錯誤
- mongodb 報錯記錄MongoDB
- 記錄一次錯誤的使用當前時間new Date()引發的錯誤
- 記錄一次一次監聽無法連線的錯誤
- Kafka錯誤記錄Kafka
- 記錄一次Mongodb被勒索的經歷MongoDB
- 記錄錯誤並繼續執行:錯誤事件記錄子句 --轉事件
- C++錯誤記錄C++
- SpringMVC錯誤記錄SpringMVC
- 記錄一次數字和字串比較時候犯的錯誤字串
- 記錄一次Git報錯Git
- 記錄 Laravel5.6 中使用 Notification 傳送郵件的一次錯誤Laravel
- git: 記一次push的錯誤,印象深刻Git
- MongoDB 記錄MongoDB
- 記錄一次非常麻煩的除錯除錯
- 錯誤記錄:apache預設網頁訪問錯誤Apache網頁
- MongoDB 錯誤彙總MongoDB
- JS錯誤記錄 – dom操作 – 排序JS排序
- 假資料填充錯誤記錄
- virtualbox 錯誤解決記錄
- 記一次 oracle expdp 匯出錯誤Oracle
- 記錄一次驚心動魄的誤操作(Oracle)Oracle
- 記錄一次定時器報錯定時器
- 記錄一次常見的錯誤:java.sql.SQLException: Got error 28 from storage engineJavaSQLExceptionGoError
- Docker環境編譯時的錯誤記錄Docker編譯
- V$SESSION記錄的BLOCKING_SESSION錯誤SessionBloC
- 記一次因為共享變數的犯錯誤變數
- 錯誤記錄(八)could not initialize proxy - no SessionSession
- postgresal使用錯誤解決 (記錄篇)
- Qt 錯誤記錄registered using qRegisterMetaType().QT
- 記一次Windows下啟動錯誤故障Windows
- 記一次OPatch failed with error code 73錯誤AIError
- 記一次危險的操作——誤刪/usr/bin目錄
- 記錄一次資料儲存出錯
- Incorrect key file for table '/tmp/....'錯誤的解決--記錄
- 用dbms_error記錄load時的錯誤Error
- MongoDB命令--自用記錄MongoDB
- mongodb聚合操作記錄MongoDB