const mongooseOptions = {
    useNewUrlParser: true,
    useFindAndModify: false,
    useCreateIndex: true,
    useUnifiedTopology: true,
    readPreference: 'secondaryPreferred'
};

module.exports = mongooseOptions;

@@ -133,50 +133,8 @@
 true
-,%0A    readPreference: 'secondaryPreferred'
 %0A%7D;%0A

Rollback readPreference config on mongoose