From 644f3697c734916f42ca8b546290f81185619932 Mon Sep 17 00:00:00 2001 From: Gogs Date: Sun, 25 Jul 2021 01:56:18 +0200 Subject: [PATCH] Schemas for Subs --- graphs/cms.htm | 15 +++++++++++---- graphs/fleet.htm | 20 +++++++++++++++----- 2 files changed, 26 insertions(+), 9 deletions(-) diff --git a/graphs/cms.htm b/graphs/cms.htm index 93d9adc..24753ea 100644 --- a/graphs/cms.htm +++ b/graphs/cms.htm @@ -1,4 +1,5 @@ -title = "CMS" == +title = "CMS" +== -== # 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 } +== +# 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 } diff --git a/graphs/fleet.htm b/graphs/fleet.htm index 2223c09..ba1227d 100644 --- a/graphs/fleet.htm +++ b/graphs/fleet.htm @@ -1,5 +1,15 @@ -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: -"GermanAirlinesVa\\Fleet\\Classes\\Aircraft") } type Aircraft { name: String! registration: String! } type AircraftType -{ type: String! aircrafts: [Aircraft] @hasMany } +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: "GermanAirlinesVa\\Fleet\\Classes\\Aircraft") +} + +type Aircraft { name: String! registration: String! } +type AircraftType { type: String! aircrafts: [Aircraft] @hasMany }