init
This commit is contained in:
34
schema/SettingsType.php
Normal file
34
schema/SettingsType.php
Normal 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);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user