question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
hugoserranacommented, Sep 12, 2018

Hi @sibelius, On mine, the GET on /graphql is returning Graphiql. I don’t know if this is the new design of Apollo-Server…

0reactions
abernixcommented, Jul 5, 2019

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 via applyMiddleware. 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 setting playground: false and attaching your own GraphiQL Koa middleware (e.g. https://github.com/expo/koa-graphiql).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found