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.
1 parent e2a114b commit 6340177Copy full SHA for 6340177
src/Config/Parser/MetadataParser/MetadataParser.php
@@ -275,6 +275,7 @@ private static function typeMetadataToGQLConfiguration(
275
foreach ($configs['definitions']['schema'] as $schemaName => $schema) {
276
$schemaQuery = $schema['query'] ?? null;
277
$schemaMutation = $schema['mutation'] ?? null;
278
+ $schemaSubscription = $schema['subscription'] ?? null;
279
280
if ($gqlName === $schemaQuery) {
281
$isRoot = true;
@@ -287,6 +288,8 @@ private static function typeMetadataToGQLConfiguration(
287
288
if ($defaultSchemaName === $schemaName) {
289
$isDefault = true;
290
}
291
+ } elseif ($gqlName === $schemaSubscription) {
292
+ $isRoot = true;
293
294
295
0 commit comments