GraphQL PubSub with Node.js, Apollo Server, Prisma, and SQLite
GraphQL PubSub with Node.js, Apollo Server, Prisma, and SQLite
Blog Article
In this tutorial, we'll dive into adding PubSub functionality to your GraphQL Apollo Server to enable real-time updates. You’ll learn how to implement a publish and subscribe mechanism for new link creation and explore additional features like voting.
What You’ll Learn:
Integrate PubSub with your GraphQL Apollo Server
Publish and subscribe to real-time events
Test PubSub functionality in GraphQL Playground
Add and practice a voting feature using PubSub
By the end of this video, you'll be able to add real-time capabilities to your GraphQL server and enhance your application's interactivity.
Timestamps:
(00:00) Intro
(00:58) Add PubSub to GraphQL Apollo Server
(02:20) Test PubSub in GraphQL Playground
(03:11) Practice Adding a Voting Feature
(07:34) Outro
If you found this video helpful, please like and subscribe for more tutorials on GraphQL, Apollo Server, and real-time features. Drop any questions or suggestions in the comments below!
Code: https://github.com/EricTechPro/react-apollo-demo/tree/a0f38c0350e841c890207635817672e6ad23cbc3/server