Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use graphiql-explorer apollo-server #50

Open
deligent-ant opened this issue Apr 28, 2020 · 0 comments
Open

use graphiql-explorer apollo-server #50

deligent-ant opened this issue Apr 28, 2020 · 0 comments

Comments

@deligent-ant
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant