Can't find an example of apollo-server-micro (v3) using subscriptions #6626
Replies: 2 comments
-
What I think I'll do is probably use a custom next.js server as described here & here. That way, I'll be able to hook into the server and avoid having to run 2 servers. |
Beta Was this translation helpful? Give feedback.
-
next.js does not actually have micro built into it. There is no technical relationship between next.js and micro, and it's very frustrating that for no obvious reason all of the next.js examples are built using the least functional Apollo Server flavor. You can easily use next.js to run express apps, as shown in its own docs. Perhaps one day they will look at our PR to fix their examples: vercel/next.js#30082 |
Beta Was this translation helpful? Give feedback.
-
Hello all,
I'm simply looking for an example of apollo-server-micro (v3) using subscriptions.
Reading https://www.apollographql.com/docs/apollo-server/data/subscriptions#enabling-subscriptions
So does that mean that using
apollo-server-express
is mandatory for me to access to the configuration bits to get subscriptions working?I wish I could leverage the next.js server to run my apollo server instead of adding a new express server instance to my container. I think this take by @theobr nicely explains why.
Beta Was this translation helpful? Give feedback.
All reactions