Skip to content

Commit 19cee2e

Browse files
author
Bryan Cross
committed
Updated README for new functionality
1 parent 0dfaf28 commit 19cee2e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

graphql/README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ This repository holds query samples for the GitHub GraphQL API. It's an easy way
55
### How to use the included script
66

77
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.
8+
1. Run `npm install`
9+
1. Pick the name of one of the included queries in the `/queries` directory, such as `viewer.graphql`.
10+
1. Run `./index.js <query_file> <token>`
11+
12+
To change variables values, just modify the variables in the `.graphql` file.

0 commit comments

Comments
 (0)