diff --git a/Plugin.php b/Plugin.php index 33b1615..132a696 100644 --- a/Plugin.php +++ b/Plugin.php @@ -6,6 +6,7 @@ use App; use Config; use Illuminate\Foundation\AliasLoader; use GermanAirlinesVa\Graphql\Classes\GraphqlServiceProvider; +use Nuwave\Lighthouse\Subscriptions\SubscriptionServiceProvider; class Plugin extends PluginBase { @@ -34,6 +35,7 @@ class Plugin extends PluginBase App::make('October\Rain\Support\ClassLoader')->addDirectories('graphql'); $this->bootPackages(); App::register(GraphqlServiceProvider::class); + App::register(SubscriptionServiceProvider::class); } public function bootPackages() diff --git a/graphs/cms.htm b/graphs/cms.htm index b63e5d9..93d9adc 100644 --- a/graphs/cms.htm +++ b/graphs/cms.htm @@ -12,5 +12,5 @@ function resolveCmsContent($root, $args) { } ?> == # 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 } +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 1f25e07..28c4f70 100644 --- a/graphs/fleet.htm +++ b/graphs/fleet.htm @@ -1,4 +1,5 @@ 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 +"GermanAirlinesVa\\Fleet\\Models\\AircraftType") } type Subscription { aircraft: [Aircraft] @subscription(class: +"GermanAirlinesVa\\Fleet\\Classes\\AircraftSub") } type Aircraft { name: String! registration: String! } type AircraftType { type: String! aircrafts: [Aircraft] @hasMany }