Skip to content

Commit

Permalink
Merge pull request #1141 from marcinjagielnicki/patch-1
Browse files Browse the repository at this point in the history
Added support of Subscription in MetadataParser
  • Loading branch information
Vincz authored Mar 5, 2024
2 parents 3961f2e + 1790432 commit 501193b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Config/Parser/MetadataParser/MetadataParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ private static function typeMetadataToGQLConfiguration(
foreach ($configs['definitions']['schema'] as $schemaName => $schema) {
$schemaQuery = $schema['query'] ?? null;
$schemaMutation = $schema['mutation'] ?? null;
$schemaSubscription = $schema['subscription'] ?? null;

if ($gqlName === $schemaQuery) {
$isRoot = true;
Expand All @@ -289,6 +290,8 @@ private static function typeMetadataToGQLConfiguration(
if ($defaultSchemaName === $schemaName) {
$isDefault = true;
}
} elseif ($gqlName === $schemaSubscription) {
$isRoot = true;
}
}
}
Expand Down

0 comments on commit 501193b

Please sign in to comment.