This commit is contained in:
2024-11-20 15:32:19 +03:00
commit f7159b7d57
10 changed files with 1005 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace dominion\api\schema;
use GraphQL\Type\Definition\ObjectType;
use GraphQL\Type\Definition\Type;
class ResultSaveErrorType extends ObjectType
{
public function __construct()
{
$config = [
'fields' => function() {
return [
'code' => [
'type' => Type::string(),
'description' => 'поле',
],
'messages' => [
'type' => Type::listOf(Type::string()),
'description' => 'текст ошибки',
],
];
}
];
parent::__construct($config);
}
}