Mongoose 3.8.6+ compatibility