Skip to content

DeprecationWarning Mongoose mpromise (mongoose's default promise library) is deprecated

Published: at 10:42 AM | 1 min read

去掉这个警告的方法:


var mongoose = require('mongoose');
mongoose.Promise = global.Promise;