thinkjs / thinkjs

Use full ES2015+ features to develop Node.js applications, Support TypeScript.
https://thinkjs.org/
MIT License
5.31k stars 617 forks source link

mongodb 连接问题 #1356

Open oneDayGo opened 5 years ago

oneDayGo commented 5 years ago

我添加这条语句就会报错 module.exports = class extends think.Mongo {

}

Class extends value undefined is not a constructor or null

我用的是mongdb相关配置配置好了

lizheming commented 5 years ago

需要添加 MongDB 扩展,详见文档 https://thinkjs.org/zh-cn/doc/3.0/mongo.html#toc-0f7

guohuihot commented 5 years ago

mongdb相关配置这个文档写不行,现在都配置不出来,等我测试好改文档