We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3961f2e + 1790432 commit 501193bCopy full SHA for 501193b
src/Config/Parser/MetadataParser/MetadataParser.php
@@ -277,6 +277,7 @@ private static function typeMetadataToGQLConfiguration(
277
foreach ($configs['definitions']['schema'] as $schemaName => $schema) {
278
$schemaQuery = $schema['query'] ?? null;
279
$schemaMutation = $schema['mutation'] ?? null;
280
+ $schemaSubscription = $schema['subscription'] ?? null;
281
282
if ($gqlName === $schemaQuery) {
283
$isRoot = true;
@@ -289,6 +290,8 @@ private static function typeMetadataToGQLConfiguration(
289
290
if ($defaultSchemaName === $schemaName) {
291
$isDefault = true;
292
}
293
+ } elseif ($gqlName === $schemaSubscription) {
294
+ $isRoot = true;
295
296
297
0 commit comments