mongoose.connection.db.collectionNames方法已经无效 建议使用mongoose.connection.db.listCollections() 转载于:https://www.cnblogs.com/weizaiyes/p/6074277.html