Github GraphQL API

Github

Github is a development platform where millions of developers and companies build, ship, and maintain their software. It offers a GraphQL API which we can join with Hasura using Remote Schemas.

Adding Github as a Remote Schema

  1. Create a Github personal access token with the proper scopes.

  2. Add the token as an environment variable in Hasura in the form of bearer <your personal access token>

  3. In the Hasura Console, go to Remote Schemas and add the Github API

    • The GraphQL Server URL is https://api.github.com/graphql
    • Add the Authorization header from the environment variable you created earlier
  4. Test by querying the token user

    {
      viewer {
        login
      }
    }
    
SPECS
Released: June 10, 2021
Developed by: Github
Category: Data Services