Compare commits
No commits in common. "644f3697c734916f42ca8b546290f81185619932" and "ebc7ff4f2f1fbffd938c391ab190e2b0b31f573d" have entirely different histories.
644f3697c7
...
ebc7ff4f2f
@ -1,5 +1,4 @@
|
|||||||
title = "CMS"
|
title = "CMS" ==
|
||||||
==
|
|
||||||
<?php
|
<?php
|
||||||
use Cms\Classes\Theme;
|
use Cms\Classes\Theme;
|
||||||
use Cms\Classes\Content;
|
use Cms\Classes\Content;
|
||||||
@ -12,12 +11,6 @@ function resolveCmsContent($root, $args) {
|
|||||||
return Content::loadCached($theme, $args['name']);
|
return Content::loadCached($theme, $args['name']);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
==
|
== # Content extend type Query { cmsContent(name: String!): CmsContent! } type CmsContent { fileName: String! content:
|
||||||
# Content
|
String markup: String parsedMarkup: String } # CMS-wide types # Backend\Models\User type BackendUser { id: ID! }
|
||||||
extend type Query { cmsContent(name: String!): CmsContent! }
|
#System\Models\File type SystemFile { id: ID path: String title: String description: String }
|
||||||
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 }
|
|
||||||
|
|||||||
@ -1,15 +1,5 @@
|
|||||||
title = "Fleet"
|
title = "Fleet" == == # Content extend type Query { aircraft: [Aircraft] @all(model:
|
||||||
==
|
"GermanAirlinesVa\\Fleet\\Models\\Aircraft") aircraftType: [AircraftType] @all(model:
|
||||||
==
|
"GermanAirlinesVa\\Fleet\\Models\\AircraftType") } type Subscription { aircraft: [Aircraft] @subscription(class:
|
||||||
# Content
|
"GermanAirlinesVa\\Fleet\\Classes\\AircraftSub") } type Aircraft { name: String! registration: String! } type
|
||||||
extend type Query {
|
AircraftType { type: String! aircrafts: [Aircraft] @hasMany }
|
||||||
aircraft: [Aircraft] @all(model: "GermanAirlinesVa\\Fleet\\Models\\Aircraft")
|
|
||||||
aircraftType: [AircraftType] @all(model: "GermanAirlinesVa\\Fleet\\Models\\AircraftType")
|
|
||||||
}
|
|
||||||
|
|
||||||
type Subscription {
|
|
||||||
aircraft: [Aircraft] @subscription(class: "GermanAirlinesVa\\Fleet\\Classes\\Aircraft")
|
|
||||||
}
|
|
||||||
|
|
||||||
type Aircraft { name: String! registration: String! }
|
|
||||||
type AircraftType { type: String! aircrafts: [Aircraft] @hasMany }
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user