diff --git a/src/GraphqlExportService.php b/src/GraphqlExportService.php index 3ddf4a15c0b358583b955f5c0a6c8b01d2b7a0ac..6f8ab12236e50cd71a922c3798fb0cb169541a62 100644 --- a/src/GraphqlExportService.php +++ b/src/GraphqlExportService.php @@ -46,11 +46,13 @@ class GraphqlExportService { private function getSchemaPlugin(ServerInterface $graphql_server): SchemaPluginInterface { $schema_name = $graphql_server->get('schema'); + $plugin_config = ['server_id' => $graphql_server->id()]; /** @var \Drupal\graphql\Plugin\SchemaPluginInterface $plugin */ $plugin = $this->pluginManager->createInstance($schema_name); $config = $graphql_server->get('schema_configuration'); if ($plugin instanceof ConfigurableInterface && $config) { - $plugin->setConfiguration($config[$schema_name] ?? []); + $schema_config = $config[$schema_name] ?? []; + $plugin->setConfiguration($schema_config + $plugin_config); } return $plugin;