We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a0b463 commit fce1a86Copy full SHA for fce1a86
src/cursor/find_cursor.ts
@@ -87,6 +87,7 @@ export class FindCursor<TSchema = any> extends AbstractCursor<TSchema> {
87
override async getMore(batchSize: number): Promise<Document | null> {
88
const numReturned = this[kNumReturned];
89
if (numReturned) {
90
+ // TODO(DRIVERS-1448): Remove logic to enforce `limit` in the driver
91
const limit = this[kBuiltOptions].limit;
92
batchSize =
93
limit && limit > 0 && numReturned + batchSize > limit ? limit - numReturned : batchSize;
0 commit comments