From 2e3155683bcb2128a240455ebac9409d530b38c9 Mon Sep 17 00:00:00 2001 From: iafilin Date: Sat, 1 Mar 2025 22:55:44 +0300 Subject: [PATCH 1/2] Fixed using GraphiQLPluginExplorer --- ariadne/explorer/templates/graphiql.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ariadne/explorer/templates/graphiql.html b/ariadne/explorer/templates/graphiql.html index 505e238c..89f24861 100644 --- a/ariadne/explorer/templates/graphiql.html +++ b/ariadne/explorer/templates/graphiql.html @@ -82,7 +82,7 @@ '{% raw default_query %}', ); {% if enable_explorer_plugin %} - var explorerPlugin = GraphiQLPluginExplorer.useExplorerPlugin({ + var explorerPlugin = GraphiQLPluginExplorer.explorerPlugin({ query: query, onEdit: setQuery, }); From 1aaaa3f887f03f20b03d38ac74c82f39f9558aaa Mon Sep 17 00:00:00 2001 From: iafilin Date: Sat, 1 Mar 2025 23:15:35 +0300 Subject: [PATCH 2/2] Fixed bug using GraphiQLPluginExplorer --- ariadne/explorer/templates/graphiql.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ariadne/explorer/templates/graphiql.html b/ariadne/explorer/templates/graphiql.html index 89f24861..43b0cd1f 100644 --- a/ariadne/explorer/templates/graphiql.html +++ b/ariadne/explorer/templates/graphiql.html @@ -82,10 +82,8 @@ '{% raw default_query %}', ); {% if enable_explorer_plugin %} - var explorerPlugin = GraphiQLPluginExplorer.explorerPlugin({ - query: query, - onEdit: setQuery, - }); + var explorerPlugin = GraphiQLPluginExplorer.explorerPlugin(); + {% endif %} return React.createElement(GraphiQL, { fetcher: fetcher,