A tutorial (now outdated) on building a real-time chat application with live geo-location updates using GraphQL subscriptions and Apollo Client. Covers setting up a SubscriptionClient with WebSockets, using subscribeToMore with updateQuery to merge subscription payloads into the Apollo store, filtering subscriptions by mutation type (CREATED/UPDATED/DELETED), and handling nested mutations for location tracking on a shared map.

8m read timeFrom prisma.io
Post cover image
Table of contents
What are GraphQL Subscriptions?Setting up your Graphcool backendSetting up the Apollo Client to use SubscriptionsBuilding a Real-Time Chat with Subscriptions 💬Adding Geo-Locations to the App 🗺Summing Up