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 8946e5d commit 7e41895Copy full SHA for 7e41895
src/Operation/Find.php
@@ -418,6 +418,12 @@ private function createQueryOptions(): array
418
$options['modifiers'] = is_object($modifiers) ? document_to_array($modifiers) : $modifiers;
419
}
420
421
+ // Ensure no cursor is left behind when limit == batchSize by increasing batchSize
422
+ if (isset($options['limit'], $options['batchSize']) && $options['limit'] === $options['batchSize']) {
423
+ assert(is_integer($options['batchSize']));
424
+ $options['batchSize']++;
425
+ }
426
+
427
return $options;
428
429
0 commit comments