How to run SlaveOk in Mongoose?
SiteModel.find({}, function(err, docs) { .... } );SiteModel.slaveOK().find({}, function(err,docs) { ... } );
Model
.where('age').gte(25)
.where('tags').in(['movie', 'music', 'art'])
.select('name', 'age', 'tags')
.skip(20)
.limit(10)
.asc('age')
.slaveOk()
.hint({ age: 1, name: 1 })
.run(callback);
Model.find(conditions).slaveOk().run(callback);
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.