Skip to content

Latest commit

 

History

History

graphql

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

GitHub GraphQL API: Query Samples

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.

How to use the included script

  1. Generate a personal access token for use with these queries.
  2. Run npm install
  3. Pick the name of one of the included queries in the /queries directory, such as viewer.graphql.
  4. Run bin/run-query <query_file> <token>

To change variable values, modify the variables in the .graphql file.