Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Platform.sh] Inline document support for GraphQL #388

Open
wants to merge 12 commits into
base: 2.5
Choose a base branch
from
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

/.web-server-pid
/app/config/parameters.yml
/app/config/graphql/*
/build/
/phpunit.xml
/var/*
Expand Down
7 changes: 7 additions & 0 deletions .platform.app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ mounts:
'web/var':
source: local
source_path: var
# GraphQL Schemas need be generated dynamically on server to reflect live repository status
#'app/config/graphql':
# source: local
# source_path: graphql
# To be prepared to move to cluster, please rather use e.g. persisted Redis instance.
'web/sessions':
source: local
Expand Down Expand Up @@ -121,6 +125,9 @@ hooks:
# Example of additional deploy hooks if you use doctrine and/or kaliop migration bundle
##bin/console doctrine:migrations:migrate --no-interaction --allow-no-migration
##bin/console kaliop:migration:migrate --no-interaction --no-debug

## Deploy hook to automatically generate GraphQL schema on deploy (could also be executed manually when needed)
# php bin/console ezplatform:graphql:generate-schema

# Post deploy hook, like deploy but after being deployed and live, for deploy tasks we can do asynchronously
#post_deploy: |
Expand Down
8 changes: 8 additions & 0 deletions app/config/graphql/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
This directory is intentionally left empty. It is to be populated by automatically generated GraphQL schema configuration files. Schema generation is done with the following commands:

```
php bin/console ezplatform:graphql:generate-schema
php bin/console cache:clear
```

For more information on eZ Platform and GraphQL see: https://doc.ezplatform.com/en/latest/api/graphql/#toc