GraphQL subscriptions in Apollo Server

Опубликовано: 05 Ноябрь 2024
на канале: Tech With Piotr
4,428
85

Learn what are the GraphQL subscriptions and how to implement server sent events using apollo server. This video tutorial gives you a simple, hands-on example of how to create websocket based subscriptions. After watching this video, you will have a knowledge of possible applications of GraphQL subscriptions.

Starting code: https://github.com/piotrmol/graphql-s...
Final code: https://github.com/piotrmol/graphql-s...

00:00 Introduction
00:43 Explaining starter code
02:59 Updating apollo server
04:29 Adding subscription to schema
04:55 Adding resolver function for subscription
06:22 Emitting message
07:49 Testing subscriptions in apollo studio

🎓 Enhance your learning journey! Visit my second channel, for valuable tips & tricks on mastering academics:    / @piotrteaches   👨‍🎓👩‍🎓