Skip to content

Commit d9ff13b

Browse files
committed
Remove unnecessary batchSize option
1 parent 7ad8cd0 commit d9ff13b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/aggregate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function toJSON(object $document): string
5151
],
5252
];
5353

54-
$cursor = $collection->aggregate($pipeline, ['batchSize' => 2]);
54+
$cursor = $collection->aggregate($pipeline);
5555

5656
foreach ($cursor as $document) {
5757
assert(is_object($document));

examples/bulk.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function toJSON(object $document): string
7171
]
7272
);
7373

74-
$cursor = $collection->find([], ['batchSize' => 2]);
74+
$cursor = $collection->find([]);
7575

7676
foreach ($cursor as $document) {
7777
assert(is_object($document));

examples/with_transaction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function toJSON(object $document): string
4848

4949
with_transaction($session, $insertData);
5050

51-
$cursor = $collection->find([], ['batchSize' => 2]);
51+
$cursor = $collection->find([]);
5252

5353
foreach ($cursor as $document) {
5454
assert(is_object($document));

0 commit comments

Comments
 (0)