apollo-server-integrations / apollo-server-integration-fastify

An Apollo Server integration for use with Fastify.
MIT License
67 stars 13 forks source link

Subscriptions support #245

Closed Maxou44 closed 1 year ago

Maxou44 commented 1 year ago

At the moment the fastify integration don't support subscriptions using websockets.

It could be nice to support it thanks to graphql-ws as it is now recommended by Apollo team.

If it's not possible to support it easily in this integration can you share tips to setup it with the latest Fastify and Apollo Server versions ?

trevor-scheer commented 1 year ago

Apollo Server doesn't support subscriptions directly, but you can implement them. We have a guide, have you come across it yet? It should be compatible with Fastify, but if it isn't let me know.

Closing this out but happy to reopen if this becomes a concern of the fastify integration specifically.

rainyEra commented 10 months ago

Apollo Server doesn't support subscriptions directly, but you can implement them. We have a guide, have you come across it yet? It should be compatible with Fastify, but if it isn't let me know.

Closing this out but happy to reopen if this becomes a concern of the fastify integration specifically.

Can you provide example? I have no idea how to connect express with fastify