Enligt Mongodbs officiella dokument
, den valfria parametern timeout kan ställas in till false .
db.collection('mycollection').find({}, {timeout:false}, function(err, cursor) {
if (!err) {
// Iterate safely on your cursor here
} else {
console.log(err);
}
});