Skip to content

Commit 501193b

Browse files
authored
Merge pull request #1141 from marcinjagielnicki/patch-1
Added support of Subscription in MetadataParser
2 parents 3961f2e + 1790432 commit 501193b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Config/Parser/MetadataParser/MetadataParser.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ private static function typeMetadataToGQLConfiguration(
277277
foreach ($configs['definitions']['schema'] as $schemaName => $schema) {
278278
$schemaQuery = $schema['query'] ?? null;
279279
$schemaMutation = $schema['mutation'] ?? null;
280+
$schemaSubscription = $schema['subscription'] ?? null;
280281

281282
if ($gqlName === $schemaQuery) {
282283
$isRoot = true;
@@ -289,6 +290,8 @@ private static function typeMetadataToGQLConfiguration(
289290
if ($defaultSchemaName === $schemaName) {
290291
$isDefault = true;
291292
}
293+
} elseif ($gqlName === $schemaSubscription) {
294+
$isRoot = true;
292295
}
293296
}
294297
}

0 commit comments

Comments
 (0)