Schemas
This commit is contained in:
parent
0a7f86dc33
commit
67a58a5277
16
graphs/cms.htm
Normal file
16
graphs/cms.htm
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
title = "CMS" ==
|
||||||
|
<?php
|
||||||
|
use Cms\Classes\Theme;
|
||||||
|
use Cms\Classes\Content;
|
||||||
|
|
||||||
|
function resolveCmsContent($root, $args) {
|
||||||
|
if (! $theme = Theme::getActiveTheme()) {
|
||||||
|
throw new \Exception(Lang::get('cms::lang.theme.active.not_found'));
|
||||||
|
}
|
||||||
|
|
||||||
|
return Content::loadCached($theme, $args['name']);
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
== # Content extend type Query { cmsContent(name: String!): CmsContent! } type CmsContent { fileName: String! content:
|
||||||
|
String markup: String parsedMarkup: String } # CMS-wide types # Backend\Models\User type BackendUser { id: ID! } #
|
||||||
|
System\Models\File type SystemFile { id: ID path: String title: String description: String }
|
||||||
4
graphs/fleet.htm
Normal file
4
graphs/fleet.htm
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
title = "Fleet" == == # Content extend type Query { aircraft: [Aircraft] @all(model:
|
||||||
|
"GermanAirlinesVa\\Fleet\\Models\\Aircraft") aircraftType: [AircraftType] @all(model:
|
||||||
|
"GermanAirlinesVa\\Fleet\\Models\\AircraftType") } type Aircraft { name: String! registration: String! } type
|
||||||
|
AircraftType { type: String! aircrafts: [Aircraft] @hasMany }
|
||||||
Loading…
x
Reference in New Issue
Block a user