offset/limit for standard terminology in API

This commit is contained in:
Shish 2023-03-08 22:26:49 +00:00
parent 3b31187ea1
commit 64c98e4755
1 changed files with 2 additions and 2 deletions

View File

@ -170,9 +170,9 @@ class Image
* @return Image[]
*/
#[Query(name: "posts", type: "[Post!]!", args: ["tags" => "[string!]"])]
public static function find_images(?int $start = 0, ?int $limit = null, array $tags=[]): array
public static function find_images(?int $offset = 0, ?int $limit = null, array $tags=[]): array
{
$result = self::find_images_internal($start, $limit, $tags);
$result = self::find_images_internal($offset, $limit, $tags);
$images = [];
foreach ($result as $row) {