Skip to content

Commit f765aaf

Browse files
committed
Public schema is disabled by default
Availability of private schemas is determined by tokens!
1 parent d84e565 commit f765aaf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/5.x/development/graphql.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,10 @@ With a GraphQL API endpoint defined, Craft determines what content should be ava
2727

2828
Craft has two types of schemas:
2929

30-
1. A single _public_ schema that defines which content should be available to unauthenticated clients.
30+
1. A single _public_ schema that defines which content should be available to unauthenticated clients. _The public schema is disabled by default._
3131
2. Any number of _private_ schemas that permit querying and mutating specific types of elements.
3232

33-
Administrators have access to a third “full” schema, for testing with the [GraphiQL IDE](#using-the-graphiql-ide).
34-
35-
Manage your schemas in the control panel by navigating to <Journey path="GraphQL, Schemas" />.
33+
Administrators have access to a third “full” schema, for testing with the [GraphiQL IDE](#using-the-graphiql-ide). Manage your schemas in the control panel by navigating to <Journey path="GraphQL, Schemas" />.
3634

3735
::: warning
3836
Schema customization is only possible with an admin account and <config5:allowAdminChanges> _on_.
@@ -77,7 +75,7 @@ Craft sets an `access-control-allow-origin: *` header by default on GraphQL resp
7775

7876
### CURL
7977

80-
Assuming your project lives at `https://my-project.ddev.site` and your [route](#create-a-graphql-route) was configured like the example above, you can confirm the [public schema](#define-your-schemas) is working by sending a `{ping}` query to it:
78+
Assuming your project lives at `https://my-project.ddev.site` and your [route](#create-a-graphql-route) was configured like the example above, you can confirm the [public schema](#define-your-schemas) is working by sending a `{ping}` query to it via the command line:
8179

8280
```bash
8381
curl -H "Content-Type: application/graphql" -d '{ping}' https://my-project.ddev.site/api

0 commit comments

Comments
 (0)