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.
2 parents 840b104 + ede1c19 commit e4fb435Copy full SHA for e4fb435
1 file changed
src/Typesense/Query.php
@@ -116,7 +116,12 @@ private function ordersToSortBy(array $orders): string
116
117
private function getApiResults()
118
{
119
- $options = ['per_page' => $this->perPage, 'page' => $this->page];
+ $options = [];
120
+
121
+ if ($this->page && $this->perPage) {
122
+ $options['page'] = $this->page;
123
+ $options['per_page'] = $this->perPage;
124
+ }
125
126
if ($filterBy = $this->wheresToFilter($this->wheres)) {
127
$options['filter_by'] = $filterBy;
0 commit comments