Closed MR-omid closed 2 years ago
allowDiskUse is working as expected. Please reopen if issue exists and share more info regarding the issue.
const response = await Model.aggregatePaginate(
aggregatePipeline,
{
page: page,
limit: count,
sort: sortObj,
allowDiskUse: true,
}
);
TypeError: Cannot set properties of undefined (setting 'allowDiskUse') at Aggregate.allowDiskUse (~/node_modules/mongoose/lib/aggregate.js:804:29)
Encountering the same error
i have same this issue, the issue have fixed ?
we set this option to true and give this error:
cannot set property 'allowDiskUse' of undefined
how can i solve this problem?