We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ahoy hoy
If you have a schema without any extensions, and you use the AlterSchemaExtensionDataEvent to add to $extensions, the $ast will always return NULL.
AlterSchemaExtensionDataEvent
$extensions
$ast
NULL
https://github.com/drupal-graphql/graphql/blob/8.x-4.x/src/Plugin/GraphQL/Schema/AlterableComposableSchema.php#L172
$ast = !empty($extensions) ? Parser::parse(implode("\n\n", $event->getSchemaExtensionData()), ['noLocation' => TRUE]) : NULL;
Should probably read:
$extensions = $event->getSchemaExtensionData(); $ast = !empty($extensions) ? Parser::parse(implode("\n\n", $extensions), ['noLocation' => TRUE]) : NULL;
Ran into this with GraphQL Compose. The sdl extensions are injected via the event, not via schema extensions.
Please and thank you.
The text was updated successfully, but these errors were encountered:
AlterableComposableSchema::getExtensionDocument returning NULL drupal…
2fc1b88
…-graphql#1395
Add empty extension test drupal-graphql#1395
d56dad0
Successfully merging a pull request may close this issue.
Ahoy hoy
If you have a schema without any extensions, and you use the
AlterSchemaExtensionDataEvent
to add to$extensions
, the$ast
will always returnNULL
.https://github.com/drupal-graphql/graphql/blob/8.x-4.x/src/Plugin/GraphQL/Schema/AlterableComposableSchema.php#L172
Should probably read:
Ran into this with GraphQL Compose. The sdl extensions are injected via the event, not via schema extensions.
Please and thank you.
The text was updated successfully, but these errors were encountered: