This commit is contained in:
Gogs 2021-06-24 16:13:34 +02:00
parent 0a7f86dc33
commit 67a58a5277
2 changed files with 20 additions and 0 deletions

16
graphs/cms.htm Normal file
View 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
View 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 }