From 919606a915722223bac82d98af5faae096f1e798 Mon Sep 17 00:00:00 2001
From: Al Munnings <al.munnings@gmail.com>
Date: Fri, 4 Apr 2025 09:09:16 +1100
Subject: [PATCH] Add server_id

---
 src/GraphqlExportService.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/GraphqlExportService.php b/src/GraphqlExportService.php
index 3ddf4a1..6f8ab12 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;
-- 
GitLab