报错mongoose.connection.db.collectionnames is not a function

mongoose.connection.db.collectionNames方法已经无效

建议使用mongoose.connection.db.listCollections() 

posted @ 2016-11-17 16:21  WWSASUKE  阅读(1405)  评论(2编辑  收藏  举报