Polka with Sapper and Apollo-server-express
See original GitHub issueI am trying to use graphql apollo-server-express with Sapper-template but I am getting 404 page it seems sapper is not allowing to add a route. Here is my code.
graphQLServer.applyMiddleware({app, path:'/graphql'}); // app is from polka
Rich said on disord that it could be related to the way Polka runs middleware in a different order. Try using Express
@lukeed do you have any idea how to solve this issue.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Integrating with Node.js middleware
Use Apollo Server with Express, Koa, and more. Apollo Server integrates easily with several popular Node.js middleware libraries. To integrate, first install ...
Read more >Sapper - Using Express (instead of Polka) - YouTube
Sapper tutorial. Sapper - Using Express (instead of Polka ). 2.2K views 3 years ago. Svelte Mastery. Svelte Mastery. 9.14K subscribers.
Read more >Svelte, Sapper, GraphQL, and Subscriptions
It has support for Server Side Rendering (for that SEO magic) via a package called Sapper. I've been wanting to explore GraphQL, and...
Read more >Codecov
dependabot/npm_and_yarn/examples/with-sapper/node-fetch-2.6.1 ... dependabot/npm_and_yarn/examples/with-apollo/apollo-server-express-2.14.2.
Read more >node.js - A Sapper-compatible setup to serve multiple apps ...
I need to set up a Polka (or Express) server so that it can serve multiple applications (one per hostname) from a single...
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
Thanks! That helps
Looks like you can add this in:
You can see this PR for more info :: https://github.com/sveltejs/sapper/pull/326
Awesome! 🙌