Według Oficjalny dokument Mongodb
, opcjonalny parametr timeout można ustawić na false .
db.collection('mycollection').find({}, {timeout:false}, function(err, cursor) {
if (!err) {
// Iterate safely on your cursor here
} else {
console.log(err);
}
});