options are deprecated, all their options are supported at the top level of the options object
Simply move the settings from the server, replset, and mongos keys up into the top level of the object.
1 | mongoose.connect( 'mongodb://localhost/db', |
turns into
1 | mongoose.connect( 'mongodb://localhost/db', |