我之前mongodb数据库已经有表了,但是表名不是复数的(如user),这时我连接的时候它会找(users),有什么办法让它找user吗????
把你的表名加到uncountables就可以了,另外一个办法是告诉mongoose你的表名var schemaObj = new mongoose.Schema({fields:Schema.Type}, { collection: 'collection_name'});