Subscription testing

This commit is contained in:
Gogs 2021-07-25 01:03:10 +02:00
parent 67a58a5277
commit ebc7ff4f2f
3 changed files with 6 additions and 3 deletions

View File

@ -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()

View File

@ -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 }

View File

@ -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 }