Write a Subscription GraphQL Query in React with urql

InstructorIan Jones

Share this video with your friends

Send Tweet

In this lesson, we'll set up Subscription Exchanges in our Urql client and forward the SubscriptionClient that OneGraph gives us.

Once the Exchange is set up, we can bring over the Subscription query that was built in Write a GraphQL Subscription Query in the Graphiql Editor and use it with Urql's useSubscription hook to access the data in our app.