Subscription testing
This commit is contained in:
parent
67a58a5277
commit
ebc7ff4f2f
@ -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()
|
||||
|
||||
@ -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 }
|
||||
|
||||
@ -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 }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user