GraphiQL in Backend

This commit is contained in:
Gogs
2021-06-02 15:46:20 +02:00
parent e7d7d18f77
commit a65593b4f9
24 changed files with 61895 additions and 617 deletions
+23 -31
View File
@@ -5,42 +5,34 @@ namespace GermanAirlinesVa\Graphql\Classes;
use Lang;
use Cms\Classes\Page;
class Graph extends Page
{
/**
* @var string The container name associated with the model.
*/
protected $dirName = 'graphs';
/**
* @var string The container name associated with the model.
*/
protected $dirName = 'graphs';
/**
* @var array The attributes that are mass assignable.
*/
protected $fillable = ['title', 'description', 'markup', 'settings', 'code'];
/**
* @var array The attributes that are mass assignable.
*/
protected $fillable = [
'title',
'description',
'markup',
'settings',
'code'
];
/**
* @var array The rules to be applied to the data.
*/
public $rules = [
'title' => 'required',
];
/**
* @var array The rules to be applied to the data.
*/
public $rules = [
'title' => 'required'
];
public function getCodeClassParent(): string
{
return GraphCode::class;
}
public function getCodeClassParent() : string {
return GraphCode::class;
public function runComponents()
{
foreach ($this->components as $component) {
$component->onRun();
}
public function runComponents()
{
foreach ($this->components as $component) {
$component->onRun();
}
}
}
}