Cursor's batchSize is optional in aggregate (#28710)

The `batchSize` property of the `cursor` option in `Collection.aggregate` is optional.
This commit is contained in:
Pierre Buyle
2018-09-10 17:53:20 -04:00
committed by Ryan Cavanaugh
parent e6eb2177e0
commit 7c1ab4c1e9

View File

@@ -901,7 +901,7 @@ export interface CollectionAggregationOptions {
readPreference?: ReadPreference | string;
// Return the query as cursor, on 2.6 > it returns as a real cursor
// on pre 2.6 it returns as an emulated cursor.
cursor?: { batchSize: number };
cursor?: { batchSize?: number };
// Explain returns the aggregation execution plan (requires mongodb 2.6 >).
explain?: boolean;
// lets the server know if it can use disk to store