File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ function toJSON(object $document): string
51
51
],
52
52
];
53
53
54
- $ cursor = $ collection ->aggregate ($ pipeline, [ ' batchSize ' => 2 ] );
54
+ $ cursor = $ collection ->aggregate ($ pipeline );
55
55
56
56
foreach ($ cursor as $ document ) {
57
57
assert (is_object ($ document ));
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ function toJSON(object $document): string
71
71
]
72
72
);
73
73
74
- $ cursor = $ collection ->find ([], [ ' batchSize ' => 2 ] );
74
+ $ cursor = $ collection ->find ([]);
75
75
76
76
foreach ($ cursor as $ document ) {
77
77
assert (is_object ($ document ));
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ function toJSON(object $document): string
48
48
49
49
with_transaction ($ session , $ insertData );
50
50
51
- $ cursor = $ collection ->find ([], [ ' batchSize ' => 2 ] );
51
+ $ cursor = $ collection ->find ([]);
52
52
53
53
foreach ($ cursor as $ document ) {
54
54
assert (is_object ($ document ));
You can’t perform that action at this time.
0 commit comments