From 1ed9bef2a1ede5646ca1829205af0e0e6a027e64 Mon Sep 17 00:00:00 2001 From: Syer10 Date: Mon, 3 Apr 2023 22:07:10 -0400 Subject: [PATCH] Fix the playground explorer and add a updated default query --- .../main/resources/graphql-playground.html | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/server/src/main/resources/graphql-playground.html b/server/src/main/resources/graphql-playground.html index 76407218..bed46d95 100644 --- a/server/src/main/resources/graphql-playground.html +++ b/server/src/main/resources/graphql-playground.html @@ -40,6 +40,15 @@ --> + @@ -60,7 +69,17 @@ function GraphiQLWithExplorer() { const [query, setQuery] = React.useState( - 'query AllCategories {\n categories {\n manga {\n title\n }\n }\n}', + 'query AllCategories {\n' + + ' categories {\n' + + ' nodes {\n' + + ' manga {\n' + + ' nodes {\n' + + ' title\n' + + ' }\n' + + ' }\n' + + ' }\n' + + ' }\n' + + '}', ); const explorerPlugin = GraphiQLPluginExplorer.useExplorerPlugin({ query: query,