If you use Mongoose with certain methods you will get a deprecation warning:
DeprecationWarning: collection.findAndModify is deprecated. Use findOneAndUpdate, findOneAndReplace or findOneAndDelete instead.
To solve the issue, you can setup the connections:
mongoose.connect('mongodb://localhost:27017/harper', {useNewUrlParser: true, useFindAndModify: false});