Skip to content

Commit 80dc53f

Browse files
committed
Add the cache clear command to the Graphql section
1 parent f9223b6 commit 80dc53f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

distribution/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,9 +643,9 @@ ISBN isn't valid...
643643
## Adding GraphQL Support
644644

645645
Isn't API Platform a REST **and** GraphQL framework? That's true! GraphQL support isn't enabled by default, to add it we
646-
need to install the [graphql-php](https://webonyx.github.io/graphql-php/) library. Run the following command:
646+
need to install the [graphql-php](https://webonyx.github.io/graphql-php/) library. Run the following command (the cache needs to be cleared twice):
647647

648-
$ docker-compose exec php composer req webonyx/graphql-php
648+
$ docker-compose exec php composer req webonyx/graphql-php && bin/console cache:clear
649649

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

0 commit comments

Comments
 (0)