init
This commit is contained in:
commit
f3c0f9d890
6 files changed
+252
No files matched your search
@@ -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