add GraphiQL
hloydl opened this issue · 1 comments
hloydl commented
Basically this is what has to be done:
Copy the example index.html from GraphiQL’s GitHub repo and replace the paths to graphiql.css and graphiql.js from
<link rel="stylesheet" href="./node_modules/graphiql/graphiql.css" />
<script src="./node_modules/graphiql/graphiql.js"></script>
to
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/graphiql@0.11.2/graphiql.css" />
<script src="//cdn.jsdelivr.net/npm/graphiql@0.11.2/graphiql.js"></script>
Save the file to something like src/main/webapp/index.html
Source: https://www.howtographql.com/graphql-java/2-queries/