where is `graphiqlKoa` in v2
See original GitHub issue- feature
on v1, we could do something like this:
router.all(
'/graphiql',
graphiqlKoa({
endpointURL: '/graphql',
subscriptionsEndpoint: `ws://localhost:${process.env.GRAPHQL_PORT}/subscriptions`,
}),
);
how can we do the same on v2?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:9 (1 by maintainers)
Top Results From Across the Web
koa-graphql/README.md at main - GitHub
Create a GraphQL HTTP server with Koa. Port from express-graphql. Installation. npm install --save koa-graphql ...
Read more >Apollo Server 0.2: GraphQL with Express, Connect, hapi or Koa
It uses GraphQL.js and works with all major Node.js server frameworks — Express, Connect, hapi and Koa. The new Apollo Server is a...
Read more >apollo-server-koa - npm
This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous- ...
Read more >Merge GraphQL Schemas using Apollo Server and Koa
Install all packages and run the server which will be available on the PORT=3000 . Let's go to the same interface of apollographql,...
Read more >Integration with Koa – GraphQL Yoga
GraphQL Yoga can be integrated easily as a route to the existing Koa application with a few lines of code. So you can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @sibelius, On mine, the GET on /graphql is returning Graphiql. I don’t know if this is the new design of Apollo-Server…
Apollo Server 2.x ships with GraphQL Playground; we no longer ship GraphiQL with Apollo Server. As of Apollo Server 2.7.0 (currently in alpha via #2937), we now provide a
getMiddleware
method (#2435) on Koa and Express to expose the composed middleware that Apollo Server would otherwise apply viaapplyMiddleware
. This should allow more refined customization when using Apollo Server with Koa. It still won’t use GraphiQL though, so if that’s of interest to you, I recommend settingplayground: false
and attaching your own GraphiQL Koa middleware (e.g. https://github.com/expo/koa-graphiql).