Tweaked version of graphql-playground-html without Electron and React environments.
import { renderPlaygroundPage } from 'https://deno.land/x/gql@2.0.0/graphiql/render.ts'
const playground = renderPlaygroundPage({
endpoint: '/graphql',
})
return new Response(playground, {
headers: new Headers({
'Content-Type': 'text/html',
}),
})