Skip to content

How to use subscription in GraphQL #4410

Closed Answered by codenarts84
codecraze25 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! Great question — GraphQL subscriptions are used when you need real-time updates from your server to the client.

When to Use Subscriptions
-Live updates needed (Chatting app, Notifications, Stock prices, etc)
if you're just fetching or sending data once, use queries or mutations instead

How to Use Subscriptions
Doc is here:
https://www.graphql-yoga.com/docs/features/subscriptions

Replies: 1 comment

This comment was marked as disruptive content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants