New Feature / Enhancement Checklist
Current Limitation
currently it's not possible to set allowDiskUse as option to queries
Feature / Enhancement Description
according to this comment, starting with mongo v5.12.8 it would be possible to pass allowDiskUse through setOptions
Automattic/mongoose#10177 (comment)
await Test.find().sort({ name: 1 }).setOptions({ allowDiskUse: true }).exec();
Example Use Case
query.find({ allowDiskUse: true }).then(function(results) {
// Request succeeded
}, function(error) {
// Request failed
});
Alternatives / Workarounds
N/A
3rd Party References
N/A
New Feature / Enhancement Checklist
Current Limitation
currently it's not possible to set
allowDiskUseas option to queriesFeature / Enhancement Description
according to this comment, starting with mongo v5.12.8 it would be possible to pass
allowDiskUsethroughsetOptionsAutomattic/mongoose#10177 (comment)
Example Use Case
Alternatives / Workarounds
N/A
3rd Party References
N/A