From 7c1ab4c1e970b227d33bbd12eafb475f014271b9 Mon Sep 17 00:00:00 2001 From: Pierre Buyle Date: Mon, 10 Sep 2018 17:53:20 -0400 Subject: [PATCH] Cursor's batchSize is optional in aggregate (#28710) The `batchSize` property of the `cursor` option in `Collection.aggregate` is optional. --- types/mongodb/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/mongodb/index.d.ts b/types/mongodb/index.d.ts index b642814949..3cbc3af64a 100644 --- a/types/mongodb/index.d.ts +++ b/types/mongodb/index.d.ts @@ -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