Skip to content

Commit 6340177

Browse files
Added support of Subscription in MetadataParser
1 parent e2a114b commit 6340177

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
@@ -275,6 +275,7 @@ private static function typeMetadataToGQLConfiguration(
275275
foreach ($configs['definitions']['schema'] as $schemaName => $schema) {
276276
$schemaQuery = $schema['query'] ?? null;
277277
$schemaMutation = $schema['mutation'] ?? null;
278+
$schemaSubscription = $schema['subscription'] ?? null;
278279

279280
if ($gqlName === $schemaQuery) {
280281
$isRoot = true;
@@ -287,6 +288,8 @@ private static function typeMetadataToGQLConfiguration(
287288
if ($defaultSchemaName === $schemaName) {
288289
$isDefault = true;
289290
}
291+
} elseif ($gqlName === $schemaSubscription) {
292+
$isRoot = true;
290293
}
291294
}
292295
}

0 commit comments

Comments
 (0)