Cosmo Streams extends GraphQL subscriptions with three router-level handlers that enable subscription authorization, initial state delivery, and per-subscriber event filtering. The SubscriptionOnStart handler validates access and sends initial data when clients subscribe, OnReceiveEvent filters events per subscriber based on
•10m read time• From wundergraph.com
Table of contents
TLDRWhy Cosmo Streams ExistsProblem 1: "You Can Subscribe to Everything or Nothing"Problem 2: "New Subscribers See Nothing Until the Next Event"Problem 3: "All Subscribers Get Identical Events"The Mutation Side: OnPublishEvent HandlerHow the Handlers WorkBuilding on EDFSPerformance ConsiderationsGetting StartedFrequently Asked Questions (FAQ)Sort: