DeprecationWarning Mongoose mpromise is deprecated
Table of Contents
var mongoose = require('mongoose'); mongoose.Promise = global.Promise; ...
去掉这个警告的方法:
var mongoose = require('mongoose');
mongoose.Promise = global.Promise;
var mongoose = require('mongoose');
mongoose.Promise = global.Promise;