#133365 README пакета, описание в composer.json и описания полей GraphQL-схемы

This commit is contained in:
srybkin committed 2026-12-04 17:47:49 +04:00
1 parent f3c0f9d890
commit 7b8add6e24
7 files changed
+298 -16

No files matched your search

+9 -1
View File
@@ -8,6 +8,14 @@ use dominion\settings\Settings;
use dominion\api\GraphQLPagination;
/**
* Пагинационный блок `settings` в корневом QueryType приложения.
*
* Поля служебные (`totalCount`/`pageCount`/`currentPage`/`perPage` из
* `GraphQLSchemaPagination::getCustomFields()`) плюс `data` — сама выборка
* `Settings::getData()`. Аргументы страницы (`page`/`perPage`/`offset`) подмешивает
* `getCustomArgs()` на стороне приложения, аргументы фильтрации висят на `data`.
*/
class SettingsPaginationType extends GraphQLSchemaPagination
{
@@ -32,7 +40,7 @@ class SettingsPaginationType extends GraphQLSchemaPagination
],
'sort' => [
'type' => Type::string(),
'description' => 'Сортировка (пример "isNew_asc" или "isVisible_desc")',
'description' => 'Сортировка (пример "code_asc" или "id_desc")',
],
]),
'resolve' => function($root, $args){