GraphsiQL
/ˈɡrafsək(ə)l/ A custom version of GraphiQL for Join Monster. Try the live demo.
To serve it, I suggest using koa-custom-graphiql.
Usage
// module we created that lets you serve a custom build of GraphiQL // import your schema definition const app = const router = // give koa-custom-graphiql the URLs for the JS and CSSrouter // serve your GraphQL API endpointrouter app// serve the custom build of GraphiQLapp app
How do I get the SQL to appear in the bottom-right-hand window? This window looks for a specific header in the HTTP response. Just set x-sql-preview
to the SQL you want to display. Make sure to URI encode characters that cannot be in a header, such as newlines.