int = (new URL(basePath + 'graphql', window.location.origin)).toString();

        // init fetcher
        const fetcher = GraphiQL.createFetcher({
          url: graphqlEndpoint,
          subscriptionUrl: graphqlEndpoint.replace(/^(http)/, 'ws'),
        });

        ReactDOM.render(
          React.createElement(GraphiQL, { fetcher }),
          document.getElementById('graphiql'),
        );
      })();
    </script>
  </body>
</html>
