mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Correct get list default values
This commit is contained in:
parent
c00f20f212
commit
fba936c2dc
1 changed files with 8 additions and 3 deletions
|
|
@ -322,6 +322,7 @@ class Builder
|
|||
$mutationFields = [];
|
||||
$limit = 1000;
|
||||
$offset = 0;
|
||||
|
||||
$wg = new WaitGroup();
|
||||
|
||||
while (!empty($attrs = Authorization::skip(fn() => $dbForProject->find(
|
||||
|
|
@ -354,13 +355,13 @@ class Builder
|
|||
]);
|
||||
$idArgs = [
|
||||
'id' => [
|
||||
'type' => Type::string()
|
||||
'type' => Type::string(),
|
||||
]
|
||||
];
|
||||
$listArgs = [
|
||||
'limit' => [
|
||||
'type' => Type::int(),
|
||||
'defaultValue' => $limit,
|
||||
'defaultValue' => 25,
|
||||
],
|
||||
'offset' => [
|
||||
'type' => Type::int(),
|
||||
|
|
@ -368,7 +369,11 @@ class Builder
|
|||
],
|
||||
'cursor' => [
|
||||
'type' => Type::string(),
|
||||
'defaultValue' => null,
|
||||
'defaultValue' => '',
|
||||
],
|
||||
'cursorDirection' => [
|
||||
'type' => Type::string(),
|
||||
'defaultValue' => Database::CURSOR_AFTER,
|
||||
],
|
||||
'orderAttributes' => [
|
||||
'type' => Type::listOf(Type::string()),
|
||||
|
|
|
|||
Loading…
Reference in a new issue