---
title: "Building a Real-Time Chat with GraphQL Subscriptions and Apollo"
url: https://daily.dev/posts/building-a-real-time-chat-with-graphql-subscriptions-and-apollo-4btibzdnm
source_url: https://www.prisma.io/blog/how-to-build-a-real-time-chat-with-graphql-subscriptions-and-apollo-d4004369b0d4
type: article
source: "Prisma Blog"
published: 2026-05-31T07:45:01.382Z
updated: 2026-05-31T09:25:06.207Z
tags: ["webdev", "react", "graphql", "apollo"]
reading_time: 8
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Building a Real-Time Chat with GraphQL Subscriptions and Apollo

**[Prisma Blog](https://daily.dev/sources/prisma-blog)** · 8 min read · 0 upvotes · 0 comments

## Summary

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.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.prisma.io/blog/how-to-build-a-real-time-chat-with-graphql-subscriptions-and-apollo-d4004369b0d4>

---

Tags: [#webdev](https://daily.dev/tags/webdev), [#react](https://daily.dev/tags/react), [#graphql](https://daily.dev/tags/graphql), [#apollo](https://daily.dev/tags/apollo)

[View this post on daily.dev](https://daily.dev/posts/building-a-real-time-chat-with-graphql-subscriptions-and-apollo-4btibzdnm)
