This commit is contained in:
2024-11-20 15:59:13 +03:00
commit f3c0f9d890
6 changed files with 252 additions and 0 deletions

34
schema/SettingsType.php Normal file
View File

@@ -0,0 +1,34 @@
<?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);
}
}