Skip to content

Latest commit

 

History

History
29 lines (27 loc) · 645 Bytes

File metadata and controls

29 lines (27 loc) · 645 Bytes

github-graphql-server

Learning GraphQL with GitHub API and Express.

Instructions

  • Clone repo and make sure Yarn is installed.
  • Inside repo, run yarn.
  • Run npm start and go to localhost:8888/graphql

Examples

In localhost, you can make calls to the GitHub API like this:

{
  gitHubUser(username: "yourUserNameGoesHere") {
    login,
    avatar_url,
    following,
    following_url,
    users_following {
      login,
      avatar_url,
      users_following {
        login,
        avatar_url
      }
    }
  }
}

Additional options are available. To look at these, check out the ./data/schema.js file.