You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/graphql/index.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,12 @@ GraphQL is a query language for APIs and can provide some nice benefits over a t
6
6
7
7
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
8
8
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
+
9
15
## Securing your GraphQL Endpoint
10
16
11
17
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
66
72
...
67
73
```
68
74
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
-
75
75
## Add-on Developers
76
76
77
77
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