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 bundle install.
  3. Pick the name of one of the included queries like viewer.graphql.
  4. Run TOKEN=<OAuth Token> bin/run-query viewer.graphql. Replace <OAuth Token> with your personal access token.