Davide-Gheri / nestjs-mercurius

NestJs module to use Mercurius as GraphQL server
MIT License
40 stars 7 forks source link

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

Open productdevbook opened 2 years ago

productdevbook commented 2 years ago
 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 commented 2 years ago

@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