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 677f923 commit 84fb363Copy full SHA for 84fb363
src/DataProvider/Pagination.php
@@ -90,9 +90,9 @@ public function getOffset(string $resourceClass = null, string $operationName =
90
if ($graphql && null !== ($last = $this->getParameterFromContext($context, 'last'))) {
91
return ($offset = ($context['count'] ?? 0) - $last) < 0 ? 0 : $offset;
92
}
93
-
+
94
$offset = ($this->getPage($context) - 1) * $limit;
95
96
if (!\is_int($offset)) {
97
throw new InvalidArgumentException('Page parameter is too large.');
98
0 commit comments