@discoveryjs/graphiql

A GraphiQL docker app

Usage no npm install needed!

<script type="module">
  import discoveryjsGraphiql from 'https://cdn.skypack.dev/@discoveryjs/graphiql';
</script>

README

GraphiQL with Discovery.js as result viewer

Start server

GRAPHQL_ENDPOINT=https://your.endpoint/graphql npm start

Run in dev mode:

GRAPHQL_ENDPOINT=https://your.endpoint/graphql npm run dev

Docker

Pull image and run it with TITLE and GRAPHQL_ENDPOINT env variables

docker pull discoveryjs/graphiql
docker run -p 3000:3000 -e GRAPHQL_ENDPOINT=https://your.endpoint/graphql -e TITLE="Some title" discoveryjs/graphiql

Build

npm run build

Results will be placed in dist folder.