File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -643,9 +643,9 @@ ISBN isn't valid...
643
643
## Adding GraphQL Support
644
644
645
645
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) :
647
647
648
- $ docker-compose exec php composer req webonyx/graphql-php
648
+ $ docker-compose exec php composer req webonyx/graphql-php && bin/console cache:clear
649
649
650
650
You now have a GraphQL API! Open ` https://localhost:8443/graphql ` to play with it using the nice [ GraphiQL] ( https://github.com/graphql/graphiql )
651
651
UI that is shipped with API Platform:
You can’t perform that action at this time.
0 commit comments