Skip to content

Commit 258bd0b

Browse files
committed
Commands in the context of the distribution by default
1 parent c41a483 commit 258bd0b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

core/graphql.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ Once enabled, you have nothing to do: your schema describing your API is automat
1414

1515
To enable GraphQL and GraphiQL interface in your API, simply require the graphql-php package using Composer:
1616

17-
$ composer require webonyx/graphql-php
17+
```bash
18+
docker-compose exec php composer req webonyx/graphql-php
19+
```
1820

19-
You can now use GraphQL at the endpoint: `http://localhost:8080/graphql`.
21+
You can now use GraphQL at the endpoint: `https://localhost:8443/graphql`.
2022

2123
## GraphiQL
2224

distribution/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,9 @@ ISBN isn't valid...
645645
Isn't API Platform a REST **and** GraphQL framework? That's true! GraphQL support isn't enabled by default, to add it we
646646
need to install the [graphql-php](https://webonyx.github.io/graphql-php/) library. Run the following command:
647647

648-
$ docker-compose exec php composer req webonyx/graphql-php
648+
```bash
649+
docker-compose exec php composer req webonyx/graphql-php
650+
```
649651

650652
You now have a GraphQL API! Open `https://localhost:8443/graphql` to play with it using the nice [GraphiQL](https://github.com/graphql/graphiql)
651653
UI that is shipped with API Platform:

0 commit comments

Comments
 (0)