mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
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:
committed by
Ryan Cavanaugh
parent
e6eb2177e0
commit
7c1ab4c1e9
2
types/mongodb/index.d.ts
vendored
2
types/mongodb/index.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user