kuvalda-settings/schema/SettingsType.php

34 lines
829 B
PHP
Raw Normal View History

2024-11-20 15:59:13 +03:00
<?php
namespace dominion\settings\schema;
use GraphQL\Type\Definition\ObjectType;
use GraphQL\Type\Definition\Type;
class SettingsType extends ObjectType
{
public function __construct()
{
$config = [
'fields' => function() {
return [
'id' => [
'type' => Type::int(),
'description' => 'Id',
],
'code' => [
'type' => Type::string(),
'description' => 'code',
],
'value' => [
'type' => Type::string(),
'description' => 'value',
],
];
}
];
parent::__construct($config);
}
}