Subscriptions in GraphQL.

GraphQL is really cool.

Today I have discovered how we can trigger and fire events by GraphQL Subscriptions. Subscriptions are a GraphQL feature that allows a server to send data to its clients when a specific event happens. Subscriptions are usually implemented with WebSockets. In that setup, the server maintains a steady connection to its single or multiple subscribed clients.

We can inform the clients whenever something is created, updated or deleted. These subscriptions are useful for notifying your client in real time about changes to back-end data, such as the creation of a new object or updates to an important field.

No Comments Yet