diff --git a/controllers/playground/index.htm b/controllers/playground/index.htm index a21a437..5703cc5 100644 --- a/controllers/playground/index.htm +++ b/controllers/playground/index.htm @@ -1 +1,2 @@ +
diff --git a/graphs/cms.htm b/graphs/cms.htm index 93d9adc..9846233 100644 --- a/graphs/cms.htm +++ b/graphs/cms.htm @@ -1,4 +1,4 @@ -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 54c9370..5d22a11 100644 --- a/graphs/fleet.htm +++ b/graphs/fleet.htm @@ -1,8 +1,27 @@ -title = "Fleet" == == # Content extend type Query { aircraft: [Aircraft] @all(model: -"GermanAirlinesVa\\Fleet\\Models\\Aircraft") aircraftType: [AircraftType] @all(model: -"GermanAirlinesVa\\Fleet\\Models\\AircraftType") } extend type Subscription { aircraftAdded: Aircraft -@subscription(class: "GermanAirlinesVa\\Fleet\\Classes\\AircraftAdded") } extend type Mutation { addAircraft( -aircraft_type_id: ID!, home_airport_id: ID!, name: String!, registration: String! ): Aircraft @create(model: -"GermanAirlinesVa\\Fleet\\Models\\Aircraft") @broadcast(subscription: "aircraftAdded") } type Aircraft { id: ID! -aircraft_type_id: ID! home_airport_id: ID! name: String! registration: String! } type AircraftType { type: String! -aircrafts: [Aircraft] @hasMany } +== +== +# Content +extend type Query { + aircraft: [Aircraft] @all(model: "GermanAirlinesVa\\Fleet\\Models\\Aircraft") + aircraftType: [AircraftType] @all(model: "GermanAirlinesVa\\Fleet\\Models\\AircraftType") +} +extend type Subscription { + aircraftAdded: Aircraft @subscription(class: "GermanAirlinesVa\\Fleet\\Classes\\AircraftAdded") +} +extend type Mutation { + addAircraft(aircraft_type_id: ID!, home_airport_id: ID!, name: String!, registration: String! ): Aircraft + @create(model:"GermanAirlinesVa\\Fleet\\Models\\Aircraft") + @broadcast(subscription: "aircraftAdded") +} + +type Aircraft { + id: ID! + aircraft_type_id: ID! + home_airport_id: ID! + name: String! + registration: String! +} +type AircraftType { + type: String! + aircrafts: [Aircraft] @hasMany +} diff --git a/package.json b/package.json index 162fe44..a595e8c 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,6 @@ }, "scripts": { "preinstall": "git config core.hooksPath .hooks", - "format": "prettier --write './**/*.{php,html,htm,yaml}'" + "format": "prettier --write './**/*.{php,html,yaml}'" } }