Skip to content

Commit 2335740

Browse files
authored
Merge pull request #8 from ExpressionEngine/move-enabling-developer-tools
Enabling Developer Tools
2 parents 3f0cfd3 + b348bbe commit 2335740

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/graphql/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ GraphQL is a query language for APIs and can provide some nice benefits over a t
66

77
Coilpack ships with the GraphQL integration disabled by default. If you would like to use GraphQL you can add `COILPACK_GRAPHQL_ENABLED=true` to your Laravel `.env` file
88

9+
## Enabling Developer Tools
10+
11+
You can interact with your site's GraphQL endpoints by using the built-in GraphiQL tool at `/graphiql` in the ExpressionEngine control panel. Once GraphQL is enabled this endpoint can be made available by adding `COILPACK_GRAPHIQL_ENABLED=true` to your Laravel `.env` file.
12+
13+
Alternatively we recommend using [GraphQL Playground](https://github.com/graphql/graphql-playground) or [Insomnia](https://insomnia.rest/) to test your queries.
14+
915
## Securing your GraphQL Endpoint
1016

1117
It is recommended that you secure your GraphQL endpoint in a production environment so authentication is required by default. You can use the command `php artisan coilpack:graphql --generate-token` to create a token and save it to your `.env` file. This token should be sent as an authorization header with any requests to the `/graphql` endpoint like this `Authorization: Bearer {COILPACK_GRAPHQL_TOKEN}`.
@@ -66,12 +72,6 @@ The GraphQL integration's behavior can be configured in the `config/coilpack.php
6672
...
6773
```
6874

69-
## Tools
70-
71-
You can interact with your site's GraphQL endpoints by using the built-in GraphiQL tool at `/graphiql`. Once GraphQL is enabled this endpoint can be made available by adding `COILPACK_GRAPHIQL_ENABLED=true` to your Laravel `.env` file.
72-
73-
Alternatively we recommend using [GraphQL Playground](https://github.com/graphql/graphql-playground) or [Insomnia](https://insomnia.rest/) to test your queries.
74-
7575
## Add-on Developers
7676

7777
If you are developing an Add-on for ExpressionEngine and would like to support GraphQL please refer to our [Add-ons documentation](../advanced/addons/graphql).

0 commit comments

Comments
 (0)