Skip to content

Instantly share code, notes, and snippets.

@sahilsinha
sahilsinha / 00_GraphQL_Subscriptions.md
Created November 11, 2021 23:11 — forked from tricoder42/00_GraphQL_Subscriptions.md
GraphQL Subscriptions with django-channels

GraphQL Subscription with django-channels

Django channels are official way for implementing async messaging in Django.

The primary caveat when working with GraphQL subscription is that we can't serialize message before broadcasting it to Group of subscribers. Each subscriber might use different GraphQL query so we don't know how to serialize instance in advance.

See related issue