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

localhost:3000/graphql dont see graphiql request.is is not a function #298

Open
productdevbook opened this issue Dec 11, 2021 · 1 comment

Comments

@productdevbook
Copy link

productdevbook commented Dec 11, 2021

 MercuriusModule.forRoot({
      autoSchemaFile: './src/schema.graphql',
      graphiql: true,
      ide: true,
      path: '/graphql',
      context: (request, reply) => ({ request, reply }),
      subscription: {
        context: (request, reply) => ({ request, reply }),
      },
    }),
{ "data": null, "errors": [ { "message": "request.is is not a function" } ] }
@smolinari
Copy link

@productdevbook -

Try localhost:3000/graphiql

Also, if graphiql doesn't work, it would be an error with Mercurius, not with this package.

Lastly, I use Voltair, as it is a much better GraphQL IDE and comes in Electron and Google Chrome Extensions and can be added as a plugin too.

Scott

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

2 participants