-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.6.9
-
Component/s: Aggregation Framework
-
None
-
ALL
After running this aggregation, I get this error: The 'cursor' option is required, except for aggregate with the explain argument
The cursor IS THERE. When I remove the out stage it works.
db.StatEvent.aggregate([
{
$match: {
'time': {$gt: timeLastRun}
}
},
{$out: tempAggrName}
], {
cursor: { batchSize: 0 }
});
- related to
-
SERVER-33393 The 'cursor' option is required, except for aggregate with the explain argument
- Closed