Skip to content

Commit 236195a

Browse files
authored
Support limit for Points scroll
1 parent f33b689 commit 236195a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Endpoints/Collections/Points.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,15 @@ public function search(SearchRequest $searchParams): Response
4343
/**
4444
* @throws InvalidArgumentException
4545
*/
46-
public function scroll(Filter $filter = null): Response
46+
public function scroll(Filter $filter = null, int $limit = null): Response
4747
{
4848
$body = [];
4949
if ($filter) {
5050
$body['filter'] = $filter->toArray();
5151
}
52+
if ($limit) {
53+
$body['limit'] = $limit;
54+
}
5255
return $this->client->execute(
5356
$this->createRequest(
5457
'POST',

0 commit comments

Comments
 (0)