Query Github Comments with OneGraph through urql's Client in React

Share this video with your friends

Send Tweet

In this lesson, we send a github graphql query using urql. We have to set up onegraph-auth so that we can pass our github authentication token in our request headers.

Urql's createClient function takes a fetchOptions parameter. This is how we can set any of the headers on our requests that urql sends.