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
npm install
- Pick the name of one of the included queries in the
/queries
directory, such asviewer.graphql
. - Run
bin/run-query <query_file> <token>
To change variable values, modify the variables in the .graphql
file.