OneGraph / graphiql-explorer

Explorer plugin for GraphiQL
MIT License
904 stars 97 forks source link

use graphiql-explorer apollo-server #50

Open deligent-ant opened 4 years ago

deligent-ant commented 4 years ago
app.get('/graphiql', async (request, reply) => {
      try {
        const graphiqlString = await resolveGraphiQLString(
          request.query,
          { endpointURL: '/api/graphql/v1' },
          [request, reply]
        )
        reply.type('text/html').send(graphiqlString)
      } catch (error) {
        reply.code(500)
        reply.send(error.message)
      }
    })

with these code ,i can have explorer,but not the data graph image