Skip to content

Commit 89d7a93

Browse files
committed
Add README for GraphQL
1 parent dd66b47 commit 89d7a93

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

graphql/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# GitHub GraphQL API: Query Samples
2+
3+
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](https://developer.github.com/early-access/graphql/explorer) or you can use the included script.
4+
5+
### How to use the included script
6+
7+
1. Generate a [personal access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use/) for use with these queries.
8+
1. Run `bundle install`.
9+
1. Pick the name of one of the included queries like `viewer.graphql`.
10+
1. Run `TOKEN=<OAuth Token> bin/run-query viewer.graphql`. Replace `<OAuth Token>` with your personal access token.

0 commit comments

Comments
 (0)