About the GraphQL Explorer
GraphiQL, also referred to in this documentation as the GraphQL Explorer, is a "graphical interactive in-browser GraphQL IDE."
Using GraphiQL
To use the GraphiQL app, download and install it from https://github.com/skevy/graphiql-app.
Configuring GraphiQL
- Get an OAuth token.
- Launch GraphiQL.
- In the upper-right corner of GraphiQL, click Edit HTTP Headers.
- In the Key field, enter
Authorization. In the Value field, enterBearer <token>, where<token>is your generated OAuth token.
- Click the checkmark to the right of the token to save it.
- To return to the editor, click outside of the Edit HTTP Headers modal.
- In the GraphQL Endpoint field, enter
http(s)://<em>HOSTNAME</em>/api/graphql. - In the Method dropdown menu, select POST.
Note: For more information about why POST is the method, see "Communicating with GraphQL."
You can test your access by querying yourself:
query {
viewer {
login
}
}
If everything worked correctly, this will display your login. You're all set to start making queries.