Skip to content

Commit fce1a86

Browse files
link drivers ticket to code
1 parent 2a0b463 commit fce1a86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cursor/find_cursor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export class FindCursor<TSchema = any> extends AbstractCursor<TSchema> {
8787
override async getMore(batchSize: number): Promise<Document | null> {
8888
const numReturned = this[kNumReturned];
8989
if (numReturned) {
90+
// TODO(DRIVERS-1448): Remove logic to enforce `limit` in the driver
9091
const limit = this[kBuiltOptions].limit;
9192
batchSize =
9293
limit && limit > 0 && numReturned + batchSize > limit ? limit - numReturned : batchSize;

0 commit comments

Comments
 (0)