This repository holds query samples for the GitHub GraphQL API. It's an easy way to get started using the GraphQL API for common workflows. You can copy and paste these queries into GraphQL Explorer or you can use the included script.
- Generate a personal access token for use with these queries.
- Run
bundle install
. - Pick the name of one of the included queries like
viewer.graphql
. - Run
TOKEN=<OAuth Token> bin/run-query viewer.graphql
. Replace<OAuth Token>
with your personal access token.